Add become to all become_user tasks.

This commit is contained in:
me
2026-10-02 07:58:58 -07:00
parent f808eb7ecb
commit ff548cc7a2
10 changed files with 46 additions and 10 deletions
+7 -6
View File
@@ -4,8 +4,8 @@
## Pre-Reqs ##
- name: Server | OnlyOffice | Pre-Requirements | Install
package:
name:
package:
name:
- gnupg
- python3-certbot-nginx
state: present
@@ -17,7 +17,7 @@
# Dependencies #
- name: Server | OnlyOffice | Postgres | Install
package:
package:
name: postgresql
state: present
@@ -27,11 +27,12 @@
- psql -c "CREATE DATABASE onlyoffice;"
- psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';"
- psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"
become: true
become_user: postgres
ignore_errors: yes
- name: Server | OnlyOffice | RabbitMQ | Install
package:
package:
name: rabbitmq-server
state: present
@@ -45,8 +46,8 @@
- apt update
- name: Server | OnlyOffice | Docs | Install
package:
name:
package:
name:
- ttf-mscorefonts-installer
- onlyoffice-documentserver
state: present