Debian 10 compatibility
Change inventory defaults to use the environments directory and add what is necessary for Debian 10.
This commit is contained in:
parent
e7f532b26b
commit
2c6171e649
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,3 +4,5 @@
|
|||||||
# Unneeded ansible file
|
# Unneeded ansible file
|
||||||
*.retry
|
*.retry
|
||||||
|
|
||||||
|
# Custom environments
|
||||||
|
/environments/
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
[defaults]
|
||||||
|
inventory = ./environments/development
|
||||||
|
|
||||||
[ssh_connection]
|
[ssh_connection]
|
||||||
pipelining=True
|
pipelining=True
|
||||||
|
|
||||||
|
16
roles/ansible/tasks/main.yml
Normal file
16
roles/ansible/tasks/main.yml
Normal 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
|
@ -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
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user