refactoring playbook
This commit is contained in:
parent
fd33d6dd09
commit
1450cd913a
5
refactoring/ansible.cfg
Normal file
5
refactoring/ansible.cfg
Normal file
@ -0,0 +1,5 @@
|
||||
[defaults]
|
||||
inventory = inventory
|
||||
private_key_file = ~/.ssh/hetzner
|
||||
|
||||
|
15
refactoring/install_apache.yml
Normal file
15
refactoring/install_apache.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
|
||||
#### Ubuntu/Debian Section ####
|
||||
|
||||
- name: Install apache2 package with php support
|
||||
package:
|
||||
name:
|
||||
- "{{ apache_package }}"
|
||||
- "{{ php_package }}"
|
||||
state: latest
|
||||
update_cache: yes
|
||||
|
4
refactoring/inventory
Normal file
4
refactoring/inventory
Normal file
@ -0,0 +1,4 @@
|
||||
10.0.0.5 apache_package=httpd php_package=php
|
||||
10.0.0.7 apache_package=apache2 php_package=libapache2-mod-php
|
||||
10.0.0.8 apache_package=apache2 php_package=libapache2-mod-php
|
||||
10.0.0.11 apache_package=httpd php_package=php
|
Loading…
Reference in New Issue
Block a user