This commit is contained in:
Mende
2020-12-08 09:26:56 +01:00
parent ba80e2b630
commit 1de3ec3880
2 changed files with 27 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
---
# task variables
git_directories:
- /root/certbot
- /opt/lynis
- /opt/neofetch
- /opt/ok-bash
- /opt/testssl.shs
+19
View File
@@ -0,0 +1,19 @@
---
- name: ensure git
package:
name: git
state: present
#- name: register directorys in defaults/main.yml
# find:
# paths: "{{ git_directories }}"
# file_type: directory
# register: found_directories
- name: pull latest changes
shell: git pull
args:
chdir: "{{ item.path }}"
executable: /bin/bash
with_items: "{{ git_directories.files }}"