This Ansible scripts are used for installation of a Lab but can be used for administration with few changes.
- Ansible 2.9.12
- Python 3.8.2
- pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
.
├── configs
│ └── inventory.yml
├── README.md
├── roles
│ ├── apache
│ │ └── tasks
│ │ ├── main.yml
│ │ └── RedHat
│ │ └── apache.yml
│ ├── general
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── tasks
│ │ │ ├── main.yml
│ │ │ └── RedHat
│ │ │ ├── ntp.yml
│ │ │ ├── osdependencies.yml
│ │ │ ├── ostools.yml
│ │ │ └── selinux.yml
│ │ ├── templates
│ │ │ └── ntp.conf.j2
│ │ └── vars
│ │ └── main.yml
│ ├── mysql
│ │ ├── tasks
│ │ │ ├── main.yml
│ │ │ └── RedHat
│ │ │ └── mysql.yml
│ │ └── vars
│ │ └── main.yml
│ ├── php
│ │ └── tasks
│ │ ├── main.yml
│ │ └── RedHat
│ │ └── php.yml
│ └── wordpress
│ ├── handlers
│ │ └── main.yml
│ ├── tasks
│ │ ├── main.yml
│ │ ├── mysql.yml
│ │ └── RedHat
│ │ └── wordpress.yml
│ ├── templates
│ │ ├── htaccess.j2
│ │ └── wp-config.php.j2
│ └── vars
│ └── main.yml
└── scripts
└── wordpress.yml
25 directories, 25 files
Basic command to install everything on localhost:
ansible-playbook -i configs/inventory.yml scripts/wordpress.yml
- SSL
- Automatic domain creation in WP
- Adjust WP version installation
- Adjust when mysql is already installed
- Adjust when mysql is remote installed
- Add monitoring
- Add vault
- Add support to other OS Distros