1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_role_websvn.git synced 2024-08-16 10:29:49 +02:00

prevent become to user

This commit is contained in:
L3D 2021-05-25 14:38:00 +02:00
parent 8c61d97755
commit 4f7714d79f
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 12 additions and 3 deletions

View file

@ -4,7 +4,7 @@ websvn__state: 'present'
websvn__adduser: true
websvn__web_user: nginx
websvn__web_group: nginx
websvn__version: 2.5
websvn__version: 2.6.1
websvn__config_src: templates/config.php
websvn__skip_peap: false

View file

@ -10,12 +10,21 @@
- name: clone websvn
become: true
become_user: "{{ websvn__web_user }}"
# become_user: "{{ websvn__web_user }}"
ansible.builtin.git:
repo: https://github.com/websvnphp/websvn.git
dest: /var/www/websvn
version: "{{ websvn__version }}"
- name: chown "{{ websvn__web_user }}" /var/www/websvn
become: true
ansible.builtin.file:
path: /var/www/websvn
recurse: yes
state: directory
owner: "{{ websvn__web_user }}"
group: "{{ websvn__web_group }}"
- name: copy config template
become: true
ansible.builtin.template:

View file

@ -13,6 +13,6 @@ websvn__packages:
# versionscheck
playbook_version_number: 16 # should be over ninethousand
playbook_version_number: 17 # should be over ninethousand
playbook_version_path: 'role-websvn_roles-ansible_github.com.version'