add git clone file
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
5f977df8f3
commit
7ce467680d
1 changed files with 22 additions and 5 deletions
|
|
@ -1,15 +1,32 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Install package {{ item.key }}
|
- name: "Install packages"
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item.key }}"
|
name: "{{ item.key }}"
|
||||||
install_recommends: no
|
|
||||||
update_cache: yes
|
|
||||||
cache_valid_time: 60
|
|
||||||
loop: "{{ __packages | dict2items }}"
|
loop: "{{ __packages | dict2items }}"
|
||||||
|
|
||||||
- name: Cloner un two_with_git
|
- name: Cloner un two_with_git
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "https://{{ __git.__user }}:{{ __git.__token }}@{{ __git.__host }}/syonad/two_with_bash.git"
|
repo: "https://{{ __git.__user }}:{{ __git.__token }}@{{ __git.__host }}/syonad/two_with_bash.git"
|
||||||
dest: "/opt/two_with_bash"
|
dest: "/opt/two_with_bash"
|
||||||
version: "main"
|
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