wip
This commit is contained in:
18
apache.yml
18
apache.yml
@@ -3,6 +3,13 @@
|
|||||||
hosts: centos
|
hosts: centos
|
||||||
|
|
||||||
tasks:
|
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
|
- name: install apache
|
||||||
yum:
|
yum:
|
||||||
name: httpd
|
name: httpd
|
||||||
@@ -10,7 +17,7 @@
|
|||||||
|
|
||||||
- name: conf httpd
|
- name: conf httpd
|
||||||
template:
|
template:
|
||||||
src: vhost.conf
|
src: /tmp/sib_10/vhost.conf
|
||||||
dest: /etc/httpd/conf.d/vhost.conf
|
dest: /etc/httpd/conf.d/vhost.conf
|
||||||
mode: 0640
|
mode: 0640
|
||||||
owner: root
|
owner: root
|
||||||
@@ -55,6 +62,11 @@
|
|||||||
|
|
||||||
- name: copy index file
|
- name: copy index file
|
||||||
template:
|
template:
|
||||||
src: index.txt
|
src: /tmp/sib_10/index.txt
|
||||||
dest: /var/www/html/example.org/index.html
|
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