From 7366a6fa62a2842bd62dbea5e76797c4e7b77214 Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 28 Jul 2020 12:41:56 +0200 Subject: [PATCH] Install required packages for websvn --- defaults/main.yml | 4 +++- tasks/main.yml | 7 +++++++ tasks/packages.yml | 6 ++++++ vars/main.yml | 3 +++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tasks/main.yml create mode 100644 tasks/packages.yml diff --git a/defaults/main.yml b/defaults/main.yml index 4c2384b..c1c8539 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,4 +1,6 @@ --- +websvn__manage_packages: true +websvn__state: 'present' + # should we do a version check? (recomended) submodules_versioncheck: false - diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..598519e --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,7 @@ +--- +- include_tasks: versioncheck.yml + when: submodules_versioncheck|bool + +- include_tasks: packages.yml + when: websvn__manage_packages | bool + diff --git a/tasks/packages.yml b/tasks/packages.yml new file mode 100644 index 0000000..37200b9 --- /dev/null +++ b/tasks/packages.yml @@ -0,0 +1,6 @@ +--- +- name: install required packages for websvn + become: true + package: + name: "{{ websvn__required_packages }}" + state: "{{ websvn__state }}" diff --git a/vars/main.yml b/vars/main.yml index 73b0916..2c9c9ad 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,4 +1,7 @@ --- +websvn__required_packages: + - php-pear + # versionscheck playbook_version_number: 5 # should be over ninethousand playbook_version_path: 'role-websvn_roles-ansible_github.com.version'