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