1
0
Fork 0
forked from OpenNeo/impress

Clarify a note in the deploy playbook

Looking back at this now I'm just like. Oh right, of course, we don't have passwordless access to *become root*, so of course Ansible's strategy of becoming root and then running the playbook step was failing!
This commit is contained in:
Emi Matchu 2023-10-12 15:01:47 -07:00
parent 2d63b1f725
commit bdd381df44

View file

@ -76,9 +76,10 @@
# NOTE: This uses the passwordless sudo rule we set up in deploy:setup. # NOTE: This uses the passwordless sudo rule we set up in deploy:setup.
# We write it as a command rather than using the built-in `systemd` Ansible # We write it as a command rather than using the built-in `systemd` Ansible
# module, to make sure we're invoking it exactly as we wrote in that rule. # module, to make sure we're invoking it exactly as we wrote in that rule.
# TODO: I'm not sure why it works to write `sudo` in the command instead of #
# `become_user: root`, which complains about the missing sudo password, which # NOTE: We use `sudo` instead of `become_user: root`, because we don't have
# we already fixed for the rest of the playbook I thought? # permission to *become* the root user; we only have permission to run this
# one command as them.
- name: Restart the app - name: Restart the app
become: no become: no
command: sudo systemctl restart impress command: sudo systemctl restart impress