Update to use FQCN
This commit is contained in:
		| @@ -4,17 +4,17 @@ | ||||
|   when: | ||||
|     - ansible_system == 'Linux' | ||||
|     - packages is not defined | ||||
|   package_facts: | ||||
|   ansible.builtin.package_facts: | ||||
| - name: 'service discovery' | ||||
|   when: | ||||
|     - ansible_system == 'Linux' | ||||
|     - services is not defined | ||||
|   service_facts: | ||||
|   ansible.builtin.service_facts: | ||||
| - name: 'ensure patch' | ||||
|   when: | ||||
|     - ansible_system == 'Linux' | ||||
|     - ansible_pkg_mgr == 'dnf' or ansible_pkg_mgr == 'yum' | ||||
|   package: | ||||
|   ansible.builtin.package: | ||||
|     name: '*' | ||||
|     state: 'latest' | ||||
|   notify: | ||||
| @@ -24,16 +24,19 @@ | ||||
|   when: | ||||
|     - ansible_system == 'Linux' | ||||
|     - ansible_pkg_mgr == 'apt' | ||||
|   apt: | ||||
|   ansible.builtin.apt: | ||||
|     autoclean: 'yes' | ||||
|     autoremove: 'yes' | ||||
|     upgrade: 'dist' | ||||
|   notify: | ||||
|     - 'ensure_os_patch.package_facts' | ||||
|     - 'ensure_os_patch.service_facts' | ||||
| - name: 'Ensure dnf-automatic installation' | ||||
|   when: | ||||
|     - ansible_system == 'Linux' | ||||
|     - ansible_distribution == 'Fedora' | ||||
|     - ansible_distribution_major_version is version('21', '>=') | ||||
|   package: | ||||
|   ansible.builtin.package: | ||||
|     name: | ||||
|       - 'dnf-automatic' | ||||
|     state: 'present' | ||||
| @@ -45,7 +48,7 @@ | ||||
|     - ansible_system == 'Linux' | ||||
|     - ansible_distribution == 'Fedora' | ||||
|     - ansible_distribution_major_version is version('21', '>=') | ||||
|   service: | ||||
|   ansible.builtin.service: | ||||
|     enabled: 'yes' | ||||
|     name: 'dnf-automatic-install.timer' | ||||
|     state: 'started' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user