prox things
This commit is contained in:
parent
271204d4e9
commit
7bce060f94
@ -1,17 +1,17 @@
|
|||||||
- name: Get users
|
# - name: Get users
|
||||||
become: "{{ do_become }}"
|
# become: "{{ do_become }}"
|
||||||
command:
|
# command:
|
||||||
argv:
|
# argv:
|
||||||
- pvesh
|
# - pvesh
|
||||||
- get
|
# - get
|
||||||
- /access/users
|
# - /access/users
|
||||||
- --output-format=json
|
# - --output-format=json
|
||||||
register: pve_users
|
# register: pve_users
|
||||||
|
|
||||||
- name: Create users
|
# - name: Create users
|
||||||
when: item.username not in (pve_users.stdout | from_json | community.general.json_query('[*].userid') |replace("@pam", ""))
|
# when: item.username not in (pve_users.stdout | from_json | community.general.json_query('[*].userid') |replace("@pam", ""))
|
||||||
include_tasks: create_user.yml
|
# include_tasks: create_user.yml
|
||||||
loop: "{{ users | selectattr('system', 'contains', 'proxmox') | flatten(levels=1) }}"
|
# loop: "{{ users | selectattr('system', 'contains', 'proxmox') | flatten(levels=1) }}"
|
||||||
|
|
||||||
- name: Disable SWAP sysctl on host
|
- name: Disable SWAP sysctl on host
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user