Commit bd05d5be authored by Lars Beckers's avatar Lars Beckers
Browse files

ad-server/-replication: update shell module usage and formatting

parent 4a283d3e
...@@ -41,14 +41,14 @@ ...@@ -41,14 +41,14 @@
# yamllint disable-line rule:line-length # yamllint disable-line rule:line-length
shell: samba-tool domain join "{{ domain }}" DC -U"{{ domain }}/Administrator" --dns-backend=NONE --option="idmap_ldb:use rfc2307=yes" 2> /root/provision.log shell: samba-tool domain join "{{ domain }}" DC -U"{{ domain }}/Administrator" --dns-backend=NONE --option="idmap_ldb:use rfc2307=yes" 2> /root/provision.log
responses: responses:
"Password for.*": "{{ lookup('passwordstore', ad_admin_password) }}" "Password for.*": "{{ ad_admin_password_content }}"
no_log: true no_log: true
tags: tags:
- ad-server - ad-server
- domain-provision - domain-provision
- name: ensure the idmap library is exported - name: ensure the idmap library is exported
shell: tdbbackup -s .bak /var/lib/samba/private/idmap.ldb command: tdbbackup -s .bak /var/lib/samba/private/idmap.ldb
delegate_to: "{{ ad_primary }}" delegate_to: "{{ ad_primary }}"
tags: tags:
- ad-server - ad-server
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
tags: tags:
- ad-server - ad-server
- domain-provision - domain-provision
when: domain_provisioned.stat.exists == False when: not domain_provisioned.stat.exists
- name: ensure smb.conf is correct - name: ensure smb.conf is correct
template: template:
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
file: file:
path: /etc/samba/smb.conf path: /etc/samba/smb.conf
state: absent state: absent
when: domain_provisioned.stat.exists == False when: not domain_provisioned.stat.exists
tags: tags:
- ad-server - ad-server
- domain-provision - domain-provision
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
# passwords will be selected at random and safed to /root/smb-provision.log) # passwords will be selected at random and safed to /root/smb-provision.log)
- name: ensure domain is provisioned - name: ensure domain is provisioned
# yamllint disable-line rule:line-length # yamllint disable-line rule:line-length
shell: samba-tool domain provision --use-rfc2307 --domain={{ smb_domain }} --server-role=dc --host-name={{ ansible_hostname }} --realm={{ REALM }} --dns-backend=NONE --adminpass={{ lookup('passwordstore', ad_admin_password) }} 2>/root/smb-provision.log shell: samba-tool domain provision --use-rfc2307 --domain={{ smb_domain }} --server-role=dc --host-name={{ ansible_hostname }} --realm={{ REALM }} --dns-backend=NONE --adminpass={{ ad_admin_password_content }} 2>/root/smb-provision.log
when: domain_provisioned.stat.exists == False when: not domain_provisioned.stat.exists
no_log: true no_log: true
tags: tags:
- ad-server - ad-server
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment