grouping tasks with block
This commit is contained in:
+11
-13
@@ -37,14 +37,14 @@
|
|||||||
path: "/home/{{ ad_domain }}"
|
path: "/home/{{ ad_domain }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Wipe existing krb5.conf
|
- name: Update krb5.conf
|
||||||
copy:
|
block:
|
||||||
|
- copy:
|
||||||
content: ''
|
content: ''
|
||||||
dest: /etc/krb5.conf
|
dest: /etc/krb5.conf
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
- name: Create krb5.conf
|
- blockinfile:
|
||||||
blockinfile:
|
|
||||||
path: /etc/krb5.conf
|
path: /etc/krb5.conf
|
||||||
marker: "###...{mark} adcli {mark}...###"
|
marker: "###...{mark} adcli {mark}...###"
|
||||||
block: |
|
block: |
|
||||||
@@ -63,14 +63,14 @@
|
|||||||
- name: Run authconfig
|
- name: Run authconfig
|
||||||
shell: authconfig --enablesssd --enablesssdauth --enablemkhomedir --update
|
shell: authconfig --enablesssd --enablesssdauth --enablemkhomedir --update
|
||||||
|
|
||||||
- name: Wipe existing sssd.conf
|
- name: Update sssd.conf
|
||||||
copy:
|
block:
|
||||||
|
- copy:
|
||||||
content: ''
|
content: ''
|
||||||
dest: /etc/sssd/sssd.conf
|
dest: /etc/sssd/sssd.conf
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
- name: Create sssd.conf
|
- blockinfile:
|
||||||
blockinfile:
|
|
||||||
path: /etc/sssd/sssd.conf
|
path: /etc/sssd/sssd.conf
|
||||||
mode: 0600
|
mode: 0600
|
||||||
marker: "###...{mark} adcli {mark}...###"
|
marker: "###...{mark} adcli {mark}...###"
|
||||||
@@ -100,13 +100,13 @@
|
|||||||
- oddjobd
|
- oddjobd
|
||||||
|
|
||||||
- name: Enable password auth on sshd
|
- name: Enable password auth on sshd
|
||||||
replace:
|
block:
|
||||||
|
- replace:
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
regexp: '^PasswordAuthentication.*$'
|
regexp: '^PasswordAuthentication.*$'
|
||||||
replace: 'PasswordAuthentication yes'
|
replace: 'PasswordAuthentication yes'
|
||||||
|
|
||||||
- name: Restart sshd
|
- service:
|
||||||
service:
|
|
||||||
name: sshd
|
name: sshd
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
@@ -124,5 +124,3 @@
|
|||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
var: idOut.stdout_lines
|
var: idOut.stdout_lines
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user