Compare commits
3
Commits
07222209ff
...
cbd79156f1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cbd79156f1
|
||
|
|
44ccab8f9b
|
||
|
|
f83901ab43
|
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
collections:
|
collections:
|
||||||
- name: 'ansible.netcommon'
|
- name: 'ansible.netcommon'
|
||||||
|
- name: 'ansible.mysql'
|
||||||
- name: 'ansible.posix'
|
- name: 'ansible.posix'
|
||||||
- name: 'ansible.windows'
|
- name: 'ansible.windows'
|
||||||
- name: 'awx.awx'
|
- name: 'awx.awx'
|
||||||
|
|||||||
@@ -172,8 +172,8 @@
|
|||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: '/srv/http/{{ item.fqdn }}'
|
path: '/srv/http/{{ item.fqdn }}'
|
||||||
state: 'directory'
|
state: 'directory'
|
||||||
owner: 'apache'
|
owner: 'root'
|
||||||
group: 'apache'
|
group: 'root'
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
setype: 'httpd_sys_content_t'
|
setype: 'httpd_sys_content_t'
|
||||||
loop: '{{ http_vhost }}'
|
loop: '{{ http_vhost }}'
|
||||||
|
|||||||
@@ -51,17 +51,30 @@
|
|||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
autoclean: 'yes'
|
autoclean: 'yes'
|
||||||
autoremove: 'yes'
|
autoremove: 'yes'
|
||||||
|
update_cache: 'yes'
|
||||||
upgrade: 'dist'
|
upgrade: 'dist'
|
||||||
notify:
|
notify:
|
||||||
- 'ensure_os_patch.package_facts'
|
- 'ensure_os_patch.package_facts'
|
||||||
- 'ensure_os_patch.service_facts'
|
- 'ensure_os_patch.service_facts'
|
||||||
- name: 'ensure dnf or yum patch'
|
- name: 'ensure dnf'
|
||||||
when:
|
when:
|
||||||
- ansible_facts["system"] == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- ansible_facts["pkg_mgr"] == 'dnf' or ansible_facts["pkg_mgr"] == 'dnf5' or ansible_facts["pkg_mgr"] == 'yum'
|
- ansible_facts["pkg_mgr"] == 'dnf'
|
||||||
ansible.builtin.package:
|
ansible.builtin.dnf:
|
||||||
name: '*'
|
name: '*'
|
||||||
state: 'latest'
|
state: 'latest'
|
||||||
|
update_cache: 'yes'
|
||||||
|
notify:
|
||||||
|
- 'ensure_os_patch.package_facts'
|
||||||
|
- 'ensure_os_patch.service_facts'
|
||||||
|
- name: 'ensure dnf5'
|
||||||
|
when:
|
||||||
|
- ansible_facts["system"] == 'Linux'
|
||||||
|
- ansible_facts["pkg_mgr"] == 'dnf5'
|
||||||
|
ansible.builtin.dnf5:
|
||||||
|
name: '*'
|
||||||
|
state: 'latest'
|
||||||
|
update_cache: 'yes'
|
||||||
notify:
|
notify:
|
||||||
- 'ensure_os_patch.package_facts'
|
- 'ensure_os_patch.package_facts'
|
||||||
- 'ensure_os_patch.service_facts'
|
- 'ensure_os_patch.service_facts'
|
||||||
|
|||||||
Reference in New Issue
Block a user