changed to checkout git repo rather than use local files
This commit is contained in:
parent
fa77381f25
commit
8fe9aaaf63
|
@ -23,10 +23,16 @@
|
|||
group: "root"
|
||||
mode: "0755"
|
||||
|
||||
############################################################
|
||||
- name: checkout du_backups repository
|
||||
ansible.builtin.git:
|
||||
repo: 'ssh://git@git.lan/home/git/repos/du_backups'
|
||||
dest: /tmp/du_backups
|
||||
|
||||
############################################################
|
||||
- name: Copy files to /usr/local/bin
|
||||
copy:
|
||||
src: "files/{{ item }}"
|
||||
src: "/tmp/du_backups/{{ item }}"
|
||||
dest: "/usr/local/bin/{{ item }}"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
|
@ -41,7 +47,7 @@
|
|||
############################################################
|
||||
- name: Copy du-list to /usr/local/etc (if it doesn't exist)
|
||||
copy:
|
||||
src: "files/du-list"
|
||||
src: "/tmp/du_backups/du-list"
|
||||
dest: "/usr/local/etc/du-list"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
|
|
Loading…
Reference in New Issue