refactoring playbook

This commit is contained in:
Caleb Fultz 2024-07-12 16:12:59 -04:00
parent fd33d6dd09
commit 1450cd913a
3 changed files with 24 additions and 0 deletions

5
refactoring/ansible.cfg Normal file
View File

@ -0,0 +1,5 @@
[defaults]
inventory = inventory
private_key_file = ~/.ssh/hetzner

View 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
View 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