Exercices: user:formation -> user:ansible
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: install apache
|
- name: install apache
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
handlers:
|
handlers:
|
||||||
- name: reload httpd
|
- name: reload httpd
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
handlers:
|
handlers:
|
||||||
- name: reload httpd
|
- name: reload httpd
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: test
|
- hosts: test
|
||||||
become: true
|
become: true
|
||||||
user: formation
|
user: ansible
|
||||||
roles:
|
roles:
|
||||||
- myapache
|
- myapache
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: test
|
- hosts: test
|
||||||
become: true
|
become: true
|
||||||
user: formation
|
user: ansible
|
||||||
vars:
|
vars:
|
||||||
- apache_vhosts:
|
- apache_vhosts:
|
||||||
- servername: vhost1
|
- servername: vhost1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- { role: myapache, servername: 'thomas.fr' }
|
- { role: myapache, servername: 'thomas.fr' }
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- myapache2
|
- myapache2
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- myapache3
|
- myapache3
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- myapache4
|
- myapache4
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- myapache4
|
- myapache4
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
vars_prompt:
|
vars_prompt:
|
||||||
- name: httpasswd
|
- name: httpasswd
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- myapache
|
- myapache
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install apache via ansible playbook
|
- name: install apache via ansible playbook
|
||||||
hosts: test
|
hosts: test
|
||||||
user: formation
|
user: ansible
|
||||||
become: true
|
become: true
|
||||||
vars_prompt:
|
vars_prompt:
|
||||||
- name: httpasswd
|
- name: httpasswd
|
||||||
|
|||||||
Reference in New Issue
Block a user