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:
parent
672c721d4e
commit
fe7be78bc9
6 changed files with 22 additions and 16 deletions
|
@ -1,22 +1,28 @@
|
||||||
---
|
---
|
||||||
- include_tasks: versioncheck.yml
|
- name: optional versionscheck
|
||||||
|
ansible.builtin.include_tasks: versioncheck.yml
|
||||||
when: submodules_versioncheck|bool
|
when: submodules_versioncheck|bool
|
||||||
|
|
||||||
- include_tasks: packages.yml
|
- name: install websvn packages
|
||||||
|
ansible.builtin.include_tasks: packages.yml
|
||||||
when: websvn__manage_packages | bool
|
when: websvn__manage_packages | bool
|
||||||
|
|
||||||
- include_tasks: user.yml
|
- name: websvn users
|
||||||
|
ansible.builtin.include_tasks: user.yml
|
||||||
when: websvn__adduser | bool
|
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
|
when: not websvn__skip_peap | bool
|
||||||
|
|
||||||
- name: install websvn
|
- name: install websvn
|
||||||
become: true
|
become: true
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: "{{ websvn__packages }}"
|
name: "{{ websvn__packages }}"
|
||||||
state: "{{ websvn__state }}"
|
state: "{{ websvn__state }}"
|
||||||
register: websvn
|
register: websvn
|
||||||
ignore_errors: true
|
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
|
when: websvn.failed | bool
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: make sure /var/www exist
|
- name: make sure /var/www exist
|
||||||
become: true
|
become: true
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /var/www
|
path: /var/www
|
||||||
recurse: yes
|
recurse: yes
|
||||||
state: directory
|
state: directory
|
||||||
|
@ -11,14 +11,14 @@
|
||||||
- name: clone websvn
|
- name: clone websvn
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ websvn__web_user }}"
|
become_user: "{{ websvn__web_user }}"
|
||||||
git:
|
ansible.builtin.git:
|
||||||
repo: https://github.com/websvnphp/websvn.git
|
repo: https://github.com/websvnphp/websvn.git
|
||||||
dest: /var/www/websvn
|
dest: /var/www/websvn
|
||||||
version: "{{ websvn__version }}"
|
version: "{{ websvn__version }}"
|
||||||
|
|
||||||
- name: copy config template
|
- name: copy config template
|
||||||
become: true
|
become: true
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "{{ websvn__config_src }}"
|
src: "{{ websvn__config_src }}"
|
||||||
dest: "/var/www/websvn/include/config.php"
|
dest: "/var/www/websvn/include/config.php"
|
||||||
backup: true
|
backup: true
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: install required packages for websvn
|
- name: install required packages for websvn
|
||||||
become: true
|
become: true
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: "{{ websvn__required_packages }}"
|
name: "{{ websvn__required_packages }}"
|
||||||
state: "{{ websvn__state }}"
|
state: "{{ websvn__state }}"
|
||||||
|
|
||||||
- name: install optional OS dependencis (primary for testing)
|
- name: install optional OS dependencis (primary for testing)
|
||||||
become: true
|
become: true
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: "{{ websvn__optional_packages }}"
|
name: "{{ websvn__optional_packages }}"
|
||||||
state: "{{ websvn__state }}"
|
state: "{{ websvn__state }}"
|
||||||
when: websvn__install_optional_packages | bool
|
when: websvn__install_optional_packages | bool
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
---
|
---
|
||||||
- name: add pear channel '{{ websvn__pear_channel }}'
|
- name: add pear channel '{{ websvn__pear_channel }}'
|
||||||
become: true
|
become: true
|
||||||
command: "pear channel-discover {{ websvn__pear_channel }}"
|
ansible.builtin.command: "pear channel-discover {{ websvn__pear_channel }}"
|
||||||
register: command_result
|
register: command_result
|
||||||
changed_when: command_result.rc == 0
|
changed_when: command_result.rc == 0
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Install pear packages
|
- name: Install pear packages
|
||||||
become: true
|
become: true
|
||||||
pear:
|
community.general.pear:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: "{{ websvn__state }}"
|
state: "{{ websvn__state }}"
|
||||||
with_items: "{{ websvn__pear_packages }}"
|
with_items: "{{ websvn__pear_packages }}"
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: "add group {{ websvn__web_group }}"
|
- name: "add group {{ websvn__web_group }}"
|
||||||
become: true
|
become: true
|
||||||
group:
|
ansible.builtin.group:
|
||||||
name: "{{ websvn__web_group }}"
|
name: "{{ websvn__web_group }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: "add user {{ websvn__web_user }}"
|
- name: "add user {{ websvn__web_user }}"
|
||||||
become: true
|
become: true
|
||||||
user:
|
ansible.builtin.user:
|
||||||
name: "{{ websvn__web_user }}"
|
name: "{{ websvn__web_user }}"
|
||||||
group: "{{ websvn__web_group }}"
|
group: "{{ websvn__web_group }}"
|
||||||
append: true
|
append: true
|
||||||
|
|
|
@ -13,6 +13,6 @@ websvn__packages:
|
||||||
|
|
||||||
|
|
||||||
# versionscheck
|
# 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'
|
playbook_version_path: 'role-websvn_roles-ansible_github.com.version'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue