Commit 15a3c5af authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

Restart Jenkins after group change

parent 2d26802e
......@@ -76,10 +76,7 @@
validate: 'visudo -cf %s'
- name: Add jenkins to sudoers group
user: name=jenkins groups=sudo append=yes state=present
- name: sudoers file
command: cat /etc/sudoers
register: file
- debug: msg="{{ file.stdout }}"
notify: Restart jenkins
handlers:
- name: Restart nginx
systemd: name=nginx state=restarted
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment