diff --git a/apache.yml b/apache.yml index ba2bfcf..fb74eaf 100644 --- a/apache.yml +++ b/apache.yml @@ -3,6 +3,13 @@ hosts: centos tasks: + - name: retrieve files + ansible.builtin.git: + repo: https://infra.opendoor.fr/git/tom/sib_10_premier_playbook + dest: /tmp/sib_10 + delegate_to: localhost + become: false + - name: install apache yum: name: httpd @@ -10,7 +17,7 @@ - name: conf httpd template: - src: vhost.conf + src: /tmp/sib_10/vhost.conf dest: /etc/httpd/conf.d/vhost.conf mode: 0640 owner: root @@ -55,6 +62,11 @@ - name: copy index file template: - src: index.txt + src: /tmp/sib_10/index.txt dest: /var/www/html/example.org/index.html - mode: 0644 \ No newline at end of file + mode: 0644 + + - name: delete temp files + file: + path: /tmp/sib_10 + state: absent \ No newline at end of file