This commit is contained in:
2022-03-11 22:02:17 +13:00
parent 1b302d2bec
commit e7f291d124
3 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@
# tags: security # tags: security
- name: Create admin group - name: Create admin group
group: name={{ADMIN_GROUP}} state=present group: name={{ ADMIN_GROUP }} state=present
- name: Configure yum limit - name: Configure yum limit
lineinfile: lineinfile:

View File

@@ -3,9 +3,9 @@
block: block:
- name: postfix | Apply postfix configuration - name: postfix | Apply postfix configuration
lineinfile: lineinfile:
dest: "{{item.dest}}" dest: "{{ item.dest }}"
regexp: "{{item.regexp}}" regexp: "{{ item.regexp }}"
line: "{{item.line}}" line: "{{ item.line }}"
insertafter: EOF insertafter: EOF
notify: Restart Postfix notify: Restart Postfix
when: "'SMTP0' not in inventory_hostname" when: "'SMTP0' not in inventory_hostname"

View File

@@ -59,7 +59,7 @@
- name: Ensure correct permissions (hosts/resolv.conf) - name: Ensure correct permissions (hosts/resolv.conf)
file: file:
path: "{{item}}" path: "{{ item }}"
state: touch state: touch
mode: u+rw,g+r,a+r mode: u+rw,g+r,a+r
with_items: with_items: