Always become

This commit is contained in:
Salt 2021-01-18 05:08:43 -06:00
parent e59f9ce63e
commit dbc9f7d6ae
6 changed files with 1 additions and 36 deletions

View File

@ -1,6 +1,7 @@
# vim:ft=ansible: # vim:ft=ansible:
all: all:
vars: vars:
ansible_become: yes
ansible_user: ansible ansible_user: ansible
children: children:
desktop: desktop:

View File

@ -7,13 +7,11 @@
- role: backup - role: backup
vars: vars:
backup_script: s3pgdump backup_script: s3pgdump
become: yes
tags: [ backup ] tags: [ backup ]
- role: motd - role: motd
vars: vars:
motd_watch_services_extra: motd_watch_services_extra:
- postgresql - postgresql
become: yes
tags: [ motd ] tags: [ motd ]
- role: postgresql - role: postgresql
vars: vars:
@ -37,20 +35,17 @@
owner: gitea-desultd owner: gitea-desultd
- name: nextcloud-desultd - name: nextcloud-desultd
owner: nextcloud-desultd owner: nextcloud-desultd
become: yes
tags: [ db, psql ] tags: [ db, psql ]
- hosts: psql1.9iron.club - hosts: psql1.9iron.club
roles: roles:
- role: backup - role: backup
vars: vars:
backup_script: s3pgdump backup_script: s3pgdump
become: yes
tags: [ backup ] tags: [ backup ]
- role: motd - role: motd
vars: vars:
motd_watch_services_extra: motd_watch_services_extra:
- postgresql - postgresql
become: yes
tags: [ motd ] tags: [ motd ]
- role: postgresql - role: postgresql
vars: vars:
@ -86,5 +81,4 @@
lc_collate: C lc_collate: C
lc_ctype: C lc_ctype: C
owner: matrix owner: matrix
become: yes
tags: [ db, psql ] tags: [ db, psql ]

View File

@ -9,14 +9,12 @@
path: /etc/mono/config path: /etc/mono/config
insertafter: "<configuration>" insertafter: "<configuration>"
line: '<dllmap dll="lzo2.dll" target="liblzo2.so.2" os="!windows"/>' line: '<dllmap dll="lzo2.dll" target="liblzo2.so.2" os="!windows"/>'
become: yes
tags: [ desktop, mono ] tags: [ desktop, mono ]
- name: give python3 cap_sys_ptrace - name: give python3 cap_sys_ptrace
capabilities: capabilities:
path: /usr/bin/python3.8 path: /usr/bin/python3.8
# Required for Randovania to access Dolphin memory # Required for Randovania to access Dolphin memory
capability: cap_sys_ptrace=eip capability: cap_sys_ptrace=eip
become: yes
tags: [ desktop, python, cap ] tags: [ desktop, python, cap ]
roles: roles:
- role: backup - role: backup
@ -24,27 +22,20 @@
backup_s3backup_tar_args_extra: h backup_s3backup_tar_args_extra: h
backup_s3backup_list_extra: backup_s3backup_list_extra:
- /home/salt/.backup/ - /home/salt/.backup/
become: yes
tags: [ backup ] tags: [ backup ]
- role: motd - role: motd
become: yes
tags: [ motd ] tags: [ motd ]
- role: desktop - role: desktop
become: yes
tags: [ desktop ] tags: [ desktop ]
- role: grub - role: grub
become: yes
tags: [ desktop, grub ] tags: [ desktop, grub ]
- role: udev - role: udev
vars: vars:
udev_rules: udev_rules:
# Switch RCM stuff # Switch RCM stuff
- SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev" - SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev"
become: yes
tags: [ desktop, udev ] tags: [ desktop, udev ]
- role: pulseaudio - role: pulseaudio
become: yes
tags: [ desktop, pulse, pulseaudio ] tags: [ desktop, pulse, pulseaudio ]
- role: zerotier - role: zerotier
become: yes
tags: [ desktop, zerotier ] tags: [ desktop, zerotier ]

View File

@ -15,7 +15,6 @@
- /opt/minecraft/dammit/backups - /opt/minecraft/dammit/backups
- /opt/minecraft/valhelsia/backups - /opt/minecraft/valhelsia/backups
- /opt/minecraft/vanilla/backups - /opt/minecraft/vanilla/backups
become: yes
tags: [ backup ] tags: [ backup ]
- role: motd - role: motd
vars: vars:
@ -23,7 +22,6 @@
- minecraft@dammit - minecraft@dammit
- minecraft@valhelsia - minecraft@valhelsia
- minecraft@vanilla - minecraft@vanilla
become: yes
tags: [ motd ] tags: [ motd ]
- role: minecraft - role: minecraft
vars: vars:
@ -49,7 +47,6 @@
- "https://media.forgecdn.net/files/3113/275/industrial-foregoing-1.16.4-3.2.2-daea863.jar" - "https://media.forgecdn.net/files/3113/275/industrial-foregoing-1.16.4-3.2.2-daea863.jar"
minecraft_forge_mods_remove: minecraft_forge_mods_remove:
- industrial-foregoing-1.16.3-3.1.1-a834e76.jar - industrial-foregoing-1.16.3-3.1.1-a834e76.jar
become: yes
tags: [ game, minecraft, forge, valhelsia ] tags: [ game, minecraft, forge, valhelsia ]
- role: factorio - role: factorio
vars: vars:
@ -65,7 +62,6 @@
public: false public: false
lan: false lan: false
admins: [ "rehashed_salt" ] admins: [ "rehashed_salt" ]
become: yes
tags: [ game, factorio ] tags: [ game, factorio ]
- hosts: game1.thefuck.how - hosts: game1.thefuck.how
roles: roles:
@ -88,7 +84,6 @@
- opt: view-distance - opt: view-distance
value: 12 value: 12
minecraft_paper_install: yes minecraft_paper_install: yes
become: yes
tags: [ game, minecraft, paper, vanilla ] tags: [ game, minecraft, paper, vanilla ]
- hosts: game1.thefuck.how - hosts: game1.thefuck.how
roles: roles:
@ -125,5 +120,4 @@
- Stellar+API-0.1.3.8.jar - Stellar+API-0.1.3.8.jar
- Stellar+Sky-0.1.5.7.jar - Stellar+Sky-0.1.5.7.jar
- World-Tooltips-1.7.10-1.2.3-79.jar - World-Tooltips-1.7.10-1.2.3-79.jar
become: yes
tags: [ game, minecraft, forge, dammit ] tags: [ game, minecraft, forge, dammit ]

View File

@ -6,7 +6,6 @@
tasks: tasks:
- name: configure nextcloud cronjob - name: configure nextcloud cronjob
cron: user=www-data name=nextcloud minute=*/5 job="php -f /var/www/nc.desu.ltd/cron.php" cron: user=www-data name=nextcloud minute=*/5 job="php -f /var/www/nc.desu.ltd/cron.php"
become: yes
tags: [ nextcloud, cron ] tags: [ nextcloud, cron ]
vars_files: vars_files:
- vars/apache.yml - vars/apache.yml
@ -24,10 +23,8 @@
- /srv/desu.ltd - /srv/desu.ltd
backup_s3backup_exclude_list_extra: backup_s3backup_exclude_list_extra:
- /var/lib/gitea/log - /var/lib/gitea/log
become: yes
tags: [ backup ] tags: [ backup ]
- role: motd - role: motd
become: yes
vars: vars:
motd_watch_services_extra: motd_watch_services_extra:
- apache2 - apache2
@ -35,13 +32,10 @@
- php7.4-fpm - php7.4-fpm
tags: [ motd ] tags: [ motd ]
- role: certbot - role: certbot
become: yes
tags: [ web, certbot ] tags: [ web, certbot ]
- role: php - role: php
become: yes
tags: [ web, php ] tags: [ web, php ]
- role: apache - role: apache
become: yes
tags: [ web, apache ] tags: [ web, apache ]
- role: git - role: git
vars: vars:
@ -52,10 +46,8 @@
dest: /var/www/www.9iron.club dest: /var/www/www.9iron.club
- repo: https://git.desu.ltd/salt/gitea-custom - repo: https://git.desu.ltd/salt/gitea-custom
dest: /usr/local/bin/custom dest: /usr/local/bin/custom
become: yes
tags: [ web, git ] tags: [ web, git ]
- role: nextcloud - role: nextcloud
become: yes
tags: [ web, nextcloud ] tags: [ web, nextcloud ]
- role: gitea - role: gitea
vars: vars:
@ -77,7 +69,6 @@
gitea_ssh_port: 22 gitea_ssh_port: 22
gitea_start_ssh: no gitea_start_ssh: no
gitea_user: git gitea_user: git
become: yes
tags: [ web, gitea ] tags: [ web, gitea ]
- hosts: game1.thefuck.how - hosts: game1.thefuck.how
roles: roles:
@ -92,7 +83,6 @@
- domains: - domains:
- thefuck.how - thefuck.how
- game1.thefuck.how - game1.thefuck.how
become: yes
tags: [ web, certbot ] tags: [ web, certbot ]
- role: php - role: php
vars: vars:
@ -105,7 +95,6 @@
- php-redis - php-redis
- php-bcmath - php-bcmath
- php-gmp - php-gmp
become: yes
tags: [ web, php ] tags: [ web, php ]
- role: apache - role: apache
vars: vars:
@ -148,12 +137,10 @@
certificate_file: /etc/letsencrypt/live/thefuck.how/fullchain.pem certificate_file: /etc/letsencrypt/live/thefuck.how/fullchain.pem
certificate_key_file: /etc/letsencrypt/live/thefuck.how/privkey.pem certificate_key_file: /etc/letsencrypt/live/thefuck.how/privkey.pem
certificate_chain_file: /etc/letsencrypt/live/thefuck.how/chain.pem certificate_chain_file: /etc/letsencrypt/live/thefuck.how/chain.pem
become: yes
tags: [ web, apache ] tags: [ web, apache ]
- role: git - role: git
vars: vars:
git_repos: git_repos:
- repo: https://git.desu.ltd/salt/thefuckhow - repo: https://git.desu.ltd/salt/thefuckhow
dest: /var/www/thefuck.how dest: /var/www/thefuck.how
become: yes
tags: [ web, git ] tags: [ web, git ]

View File

@ -5,10 +5,8 @@
- hosts: all - hosts: all
roles: roles:
- role: common - role: common
become: yes
tags: [ common ] tags: [ common ]
- role: ansible-pull - role: ansible-pull
become: yes
tags: [ ansible, common ] tags: [ ansible, common ]
# Import specific playbooks # Import specific playbooks
- import_playbook: playbooks/db.yml - import_playbook: playbooks/db.yml