Remove unnecessary use of become from some roles

This should make execution much faster
This commit is contained in:
Jake Howard
2024-09-05 23:33:49 +01:00
parent 25cd394f08
commit d5a7a61171
68 changed files with 11 additions and 243 deletions

View File

@ -7,7 +7,6 @@
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install compose file
template:
@ -17,7 +16,6 @@
owner: "{{ docker_user.name }}"
validate: docker-compose -f %s config
notify: restart comentario
become: true
- name: Install secrets
copy:
@ -26,7 +24,6 @@
mode: "600"
owner: "{{ docker_user.name }}"
notify: restart comentario
become: true
- name: Install nginx config
template:
@ -34,7 +31,6 @@
dest: /etc/nginx/http.d/comentario.conf
mode: "0644"
notify: reload nginx
become: true
vars:
server_name: comentario.theorangeone.net
upstream: comentario-comentario-1.docker:80