Debian 10 compatibility

Change inventory defaults to use the environments directory and
add what is necessary for Debian 10.
This commit is contained in:
Kris Lamoureux 2020-01-17 00:46:06 -05:00
parent e7f532b26b
commit 2c6171e649
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
5 changed files with 39 additions and 8 deletions

2
.gitignore vendored
View File

@ -4,3 +4,5 @@
# Unneeded ansible file # Unneeded ansible file
*.retry *.retry
# Custom environments
/environments/

View File

@ -1,3 +1,6 @@
[defaults]
inventory = ./environments/development
[ssh_connection] [ssh_connection]
pipelining=True pipelining=True

View File

@ -0,0 +1,16 @@
- name: 'Install Ansible dependency: python-apt'
shell: 'apt-get update && apt-get install python-apt -y'
args:
creates: /usr/lib/python2.7/dist-packages/apt
warn: false
- name: 'Install Ansible dependency: aptitude'
apt:
name: 'aptitude'
state: present
force_apt_get: true
- name: 'Install Ansible dependency: python-docker'
apt:
name: python-docker
state: present

View File

@ -14,18 +14,27 @@
- name: Install Apache2 Web Server - name: Install Apache2 Web Server
apt: name=apache2 state=present apt:
name: apache2
state: present
- name: Start Apache2 Web Server - name: Start Apache2 Web Server
service: name=apache2 state=started service:
name: apache2
state: started
- name: Install PHP - name: Install PHP
apt: name=php state=present apt:
name: php
state: present
- name: Install PHP MySQL Extension - name: Install PHP MySQL Extension
apt: name=php-mysql state=present apt:
name: php-mysql
state: present
notify: Reload Apache2 notify: Reload Apache2
- name: Install MySQL Server - name: Install MariaDB Server
apt: name=mysql-server state=present apt:
name: mariadb-server
state: present

View File

@ -13,10 +13,11 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
- name: Install FRITA Infrastructure - name: Install FRITA Web Server
hosts: all hosts: all
become: yes become: yes
roles: roles:
- ansible
- webserver - webserver
- wordpress - wordpress
- nextcloud - nextcloud