lint fixes
This commit is contained in:
parent
96b524bed8
commit
8b1b0b8dc5
3 changed files with 12 additions and 6 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
ansible.posix.selinux:
|
ansible.posix.selinux:
|
||||||
state: disabled
|
state: disabled
|
||||||
|
|
||||||
#- name: Explicitly specifying positional matched groups in replacement
|
# - name: Explicitly specifying positional matched groups in replacement
|
||||||
# ansible.builtin.replace:
|
# ansible.builtin.replace:
|
||||||
# path: /etc/ssh/sshd_config
|
# path: /etc/ssh/sshd_config
|
||||||
# regexp: ^(ListenAddress[ ]+)[^\n]+$
|
# regexp: ^(ListenAddress[ ]+)[^\n]+$
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,27 @@
|
||||||
---
|
---
|
||||||
- name: Make sure the folder exists (Red Hat)
|
- name: Make sure the folder exists (Red Hat)
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /etc/pki/ca-trust/source/anchors
|
path: /etc/pki/ca-trust/source/anchors
|
||||||
state: directory
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
- name: Copy PEM into folder (Red Hat)
|
- name: Copy PEM into folder (Red Hat)
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ install_root_cert_pem }}"
|
src: "{{ install_root_cert_pem }}"
|
||||||
dest: "/etc/pki/ca-trust/source/anchors/{{ install_root_cert_pem | basename }}"
|
dest: "/etc/pki/ca-trust/source/anchors/{{ install_root_cert_pem | basename }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Update CA Trust (Red Hat)
|
- name: Update CA Trust (Red Hat)
|
||||||
command: update-ca-trust
|
ansible.builtin.command: update-ca-trust
|
||||||
when: result is changed
|
when: result is changed
|
||||||
|
|
||||||
- name: Update CA Trust (Red Hat < 7)
|
- name: Update CA Trust (Red Hat < 7)
|
||||||
command: update-ca-trust enable
|
ansible.builtin.command: update-ca-trust enable
|
||||||
when:
|
when:
|
||||||
- result is changed
|
- result is changed
|
||||||
- ansible_distribution_version|int < 7
|
- ansible_distribution_version|int < 7
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue