diff --git a/roles/artemis/templates/artemis_deployment_sudoers.j2 b/roles/artemis/templates/artemis_deployment_sudoers.j2 index db3df7e..37d64c3 100644 --- a/roles/artemis/templates/artemis_deployment_sudoers.j2 +++ b/roles/artemis/templates/artemis_deployment_sudoers.j2 @@ -1,16 +1,10 @@ {{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: /bin/systemctl start artemis -{{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: systemctl start artemis {{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: /bin/systemctl stop artemis -{{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: systemctl stop artemis {{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: {{ artemis_working_directory }}/artemis-backup.sh # Whitelist commands for `artemis-server-cli deploy` {{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: /usr/bin/mv /home/{{ artemis_deployment_user_name }}/artemis.war.new {{ artemis_working_directory }}/artemis.war.new -{{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: mv /home/{{ artemis_deployment_user_name }}/artemis.war.new {{ artemis_working_directory }}/artemis.war.new {{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: /usr/bin/rm {{ artemis_working_directory }}/artemis.war.old -{{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: rm {{ artemis_working_directory }}/artemis.war.old {{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: /usr/bin/mv {{ artemis_working_directory }}/artemis.war {{ artemis_working_directory }}/artemis.war.old -{{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: mv {{ artemis_working_directory }}/artemis.war {{ artemis_working_directory }}/artemis.war.old {{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: /usr/bin/mv {{ artemis_working_directory }}/artemis.war.new {{ artemis_working_directory }}/artemis.war -{{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: mv {{ artemis_working_directory }}/artemis.war.new {{ artemis_working_directory }}/artemis.war {{ artemis_deployment_user_name }} ALL=(ALL) NOPASSWD: /usr/bin/bash {{ artemis_working_directory }}/artemis-docker.sh restart *