mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
Added sudo priviliges to roles
This commit is contained in:
parent
2fb44c984b
commit
543c640754
15
site.yml
15
site.yml
@ -1,18 +1,20 @@
|
|||||||
---
|
---
|
||||||
- name: general host setup
|
- name: general host setup
|
||||||
hosts: all
|
hosts: all
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- system-security
|
- system-security
|
||||||
- system-update
|
- system-update
|
||||||
- native-journalctl
|
- native-journalctl
|
||||||
- native-hostname
|
- native-hostname
|
||||||
become: true
|
|
||||||
- name: setup wireguard hosts
|
- name: setup wireguard hosts
|
||||||
hosts: wireguard_hosts
|
hosts: wireguard_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- native-wireguard
|
- native-wireguard
|
||||||
- name: setup primary backup hosts
|
- name: setup primary backup hosts
|
||||||
hosts: primary_backup_hosts
|
hosts: primary_backup_hosts
|
||||||
|
become: true
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: "check if docker is installed"
|
- name: "check if docker is installed"
|
||||||
shell: pacman -Q docker
|
shell: pacman -Q docker
|
||||||
@ -23,20 +25,24 @@
|
|||||||
when: "'error:' not in pacman_q_docker.stderr"
|
when: "'error:' not in pacman_q_docker.stderr"
|
||||||
- name: setup nginx hosts
|
- name: setup nginx hosts
|
||||||
hosts: nginx_hosts
|
hosts: nginx_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: native-nginx
|
- role: native-nginx
|
||||||
- name: setup replica backup hosts
|
- name: setup replica backup hosts
|
||||||
hosts: replica_backup_hosts
|
hosts: replica_backup_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: native-pull-remote-backups
|
- role: native-pull-remote-backups
|
||||||
- name: setup homepages
|
- name: setup homepages
|
||||||
hosts: homepage_hosts
|
hosts: homepage_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: native-homepage
|
- role: native-homepage
|
||||||
vars:
|
vars:
|
||||||
domain: "{{top_domain}}"
|
domain: "{{top_domain}}"
|
||||||
- name: setup nextcloud hosts
|
- name: setup nextcloud hosts
|
||||||
hosts: nextcloud_hosts
|
hosts: nextcloud_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: docker-nextcloud
|
- role: docker-nextcloud
|
||||||
vars:
|
vars:
|
||||||
@ -44,6 +50,7 @@
|
|||||||
http_port: 8001
|
http_port: 8001
|
||||||
- name: setup gitea hosts
|
- name: setup gitea hosts
|
||||||
hosts: gitea_hosts
|
hosts: gitea_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: docker-gitea
|
- role: docker-gitea
|
||||||
vars:
|
vars:
|
||||||
@ -53,6 +60,7 @@
|
|||||||
run_mode: prod
|
run_mode: prod
|
||||||
- name: setup wordpress hosts
|
- name: setup wordpress hosts
|
||||||
hosts: wordpress_hosts
|
hosts: wordpress_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: docker-wordpress
|
- role: docker-wordpress
|
||||||
vars:
|
vars:
|
||||||
@ -60,6 +68,7 @@
|
|||||||
http_port: 8003
|
http_port: 8003
|
||||||
- name: setup mediawiki hosts
|
- name: setup mediawiki hosts
|
||||||
hosts: mediawiki_hosts
|
hosts: mediawiki_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: docker-mediawiki
|
- role: docker-mediawiki
|
||||||
vars:
|
vars:
|
||||||
@ -67,6 +76,7 @@
|
|||||||
http_port: 8004
|
http_port: 8004
|
||||||
- name: setup mybb hosts
|
- name: setup mybb hosts
|
||||||
hosts: mybb_hosts
|
hosts: mybb_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: docker-mybb
|
- role: docker-mybb
|
||||||
vars:
|
vars:
|
||||||
@ -74,6 +84,7 @@
|
|||||||
http_port: 8005
|
http_port: 8005
|
||||||
- name: setup yourls hosts
|
- name: setup yourls hosts
|
||||||
hosts: yourls_hosts
|
hosts: yourls_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: docker-yourls
|
- role: docker-yourls
|
||||||
vars:
|
vars:
|
||||||
@ -81,6 +92,7 @@
|
|||||||
http_port: 8006
|
http_port: 8006
|
||||||
- name: setup mailu hosts
|
- name: setup mailu hosts
|
||||||
hosts: mailu_hosts
|
hosts: mailu_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: docker-mailu
|
- role: docker-mailu
|
||||||
vars:
|
vars:
|
||||||
@ -89,6 +101,7 @@
|
|||||||
https_port: 4431
|
https_port: 4431
|
||||||
- name: setup elk hosts
|
- name: setup elk hosts
|
||||||
hosts: elk_hosts
|
hosts: elk_hosts
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: docker-elk
|
- role: docker-elk
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
Reference in New Issue
Block a user