wip
This commit is contained in:
18
apache.yml
18
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
|
||||
mode: 0644
|
||||
|
||||
- name: delete temp files
|
||||
file:
|
||||
path: /tmp/sib_10
|
||||
state: absent
|
||||
Reference in New Issue
Block a user