From 4bd6eebafdf43e1b5cbac8d2dd096b144db84319 Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Wed, 16 Nov 2022 14:41:55 +0100 Subject: [PATCH] wip --- apache.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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