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

update ansible version

This commit is contained in:
L3D 2021-05-25 10:28:58 +02:00
parent 672c721d4e
commit fe7be78bc9
Signed by: l3d
GPG key ID: CD08445BFF4313D1
6 changed files with 22 additions and 16 deletions

View file

@ -1,22 +1,28 @@
---
- include_tasks: versioncheck.yml
- name: optional versionscheck
ansible.builtin.include_tasks: versioncheck.yml
when: submodules_versioncheck|bool
- include_tasks: packages.yml
- name: install websvn packages
ansible.builtin.include_tasks: packages.yml
when: websvn__manage_packages | bool
- include_tasks: user.yml
- name: websvn users
ansible.builtin.include_tasks: user.yml
when: websvn__adduser | bool
- include_tasks: pear_setup.yml
- name: setup php pear stuff
ansible.builtin.include_tasks: pear_setup.yml
when: not websvn__skip_peap | bool
- name: install websvn
become: true
package:
ansible.builtin.package:
name: "{{ websvn__packages }}"
state: "{{ websvn__state }}"
register: websvn
ignore_errors: true
- include_tasks: manual_install_websvn.yml
- name: install websvn manually
ansible.builtin.include_tasks: manual_install_websvn.yml
when: websvn.failed | bool

View file

@ -1,7 +1,7 @@
---
- name: make sure /var/www exist
become: true
file:
ansible.builtin.file:
path: /var/www
recurse: yes
state: directory
@ -11,14 +11,14 @@
- name: clone websvn
become: true
become_user: "{{ websvn__web_user }}"
git:
ansible.builtin.git:
repo: https://github.com/websvnphp/websvn.git
dest: /var/www/websvn
version: "{{ websvn__version }}"
- name: copy config template
become: true
template:
ansible.builtin.template:
src: "{{ websvn__config_src }}"
dest: "/var/www/websvn/include/config.php"
backup: true

View file

@ -1,13 +1,13 @@
---
- name: install required packages for websvn
become: true
package:
ansible.builtin.package:
name: "{{ websvn__required_packages }}"
state: "{{ websvn__state }}"
- name: install optional OS dependencis (primary for testing)
become: true
package:
ansible.builtin.package:
name: "{{ websvn__optional_packages }}"
state: "{{ websvn__state }}"
when: websvn__install_optional_packages | bool

View file

@ -1,14 +1,14 @@
---
- name: add pear channel '{{ websvn__pear_channel }}'
become: true
command: "pear channel-discover {{ websvn__pear_channel }}"
ansible.builtin.command: "pear channel-discover {{ websvn__pear_channel }}"
register: command_result
changed_when: command_result.rc == 0
failed_when: false
- name: Install pear packages
become: true
pear:
community.general.pear:
name: "{{ item }}"
state: "{{ websvn__state }}"
with_items: "{{ websvn__pear_packages }}"

View file

@ -1,13 +1,13 @@
---
- name: "add group {{ websvn__web_group }}"
become: true
group:
ansible.builtin.group:
name: "{{ websvn__web_group }}"
state: present
- name: "add user {{ websvn__web_user }}"
become: true
user:
ansible.builtin.user:
name: "{{ websvn__web_user }}"
group: "{{ websvn__web_group }}"
append: true

View file

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