new task update apt packages
This commit is contained in:
11
playbook.yml
11
playbook.yml
@@ -4,15 +4,8 @@
|
||||
remote_user: root
|
||||
|
||||
tasks:
|
||||
- name: Ensure apache is at the latest version
|
||||
ansible.builtin.yum:
|
||||
name: httpd
|
||||
state: latest
|
||||
|
||||
- name: Write the apache config file
|
||||
ansible.builtin.template:
|
||||
src: /srv/httpd.j2
|
||||
dest: /etc/httpd.conf
|
||||
- name: Update all apt packages
|
||||
apt: state=latest force_apt_get=yes
|
||||
|
||||
- name: Update db servers
|
||||
hosts: databases
|
||||
|
||||
Reference in New Issue
Block a user