diff --git a/defaults/main.yml b/defaults/main.yml index a6a7776..729ce16 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -10,5 +10,9 @@ websvn__config_src: templates/config.php websvn__config_parentPath: '/var/svn' # false for disable this option websvn__manage_config_parentPath: true +websvn__install_optional_packages: true +websvn__optional_packages: + - sudo + # should we do a version check? (recomended) submodules_versioncheck: false diff --git a/tasks/packages.yml b/tasks/packages.yml index 37200b9..cd20bfc 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -4,3 +4,10 @@ package: name: "{{ websvn__required_packages }}" state: "{{ websvn__state }}" + +- name: install optional OS dependencis (primary for testing) + become: true + package: + name: "{{ websvn__optional_packages }}" + state: "{{ websvn__state }}" + when: "{{ websvn__install_optional_packages | bool }}"