split role in multiple files
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
914c13d5a0
commit
165b48cd61
4 changed files with 59 additions and 47 deletions
27
tasks/git.yml
Normal file
27
tasks/git.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
|
||||
- name: Cloner un two_with_git
|
||||
ansible.builtin.git:
|
||||
repo: "https://{{ __git.__user }}:{{ __git.__token }}@{{ __git.__host }}/syonad/two_with_bash.git"
|
||||
dest: "/opt/two_with_bash"
|
||||
version: "main"
|
||||
|
||||
- name: Cron git pull two_with_git
|
||||
ansible.builtin.cron:
|
||||
name: "update_repo_two_with_git"
|
||||
user: "root"
|
||||
minute: "*/5"
|
||||
job: "cd /opt/two_with_bash && git pull > /var/log/git-pull.log 2>&1"
|
||||
|
||||
- name: Cloner un two
|
||||
ansible.builtin.git:
|
||||
repo: "https://{{ __git.__user }}:{{ __git.__token }}@{{ __git.__host }}/syonad/two.git"
|
||||
dest: "/opt/two"
|
||||
version: "main"
|
||||
|
||||
- name: Cron git pull two
|
||||
ansible.builtin.cron:
|
||||
name: "update_repo_two"
|
||||
user: "root"
|
||||
minute: "*/5"
|
||||
job: "cd /opt/two && git pull > /var/log/git-pull.log 2>&1"
|
||||
Loading…
Add table
Add a link
Reference in a new issue