mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Copy server duckdns dotfiles
This commit is contained in:
@@ -10,3 +10,8 @@ profile_packages:
|
|||||||
- pciutils
|
- pciutils
|
||||||
- ranger
|
- ranger
|
||||||
- rsync
|
- rsync
|
||||||
|
|
||||||
|
server_dotfiles:
|
||||||
|
- src: duckdns/
|
||||||
|
dest: duckdns/
|
||||||
|
mode: preserve
|
||||||
|
|||||||
@@ -1 +1,13 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- name: Copy server dotfiles
|
||||||
|
tags: [dotfiles, dotfiles:server]
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ playbook_dir }}/../dotfiles/server/{{ item.src }}"
|
||||||
|
dest: "{{ user_home }}/{{ item.dest }}"
|
||||||
|
owner: "{{ username }}"
|
||||||
|
group: "{{ user_group }}"
|
||||||
|
mode: "{{ item.mode }}"
|
||||||
|
loop: "{{ server_dotfiles | default([]) }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.dest }}"
|
||||||
|
|||||||
1
dotfiles/server/duckdns/duck.log
Normal file
1
dotfiles/server/duckdns/duck.log
Normal file
@@ -0,0 +1 @@
|
|||||||
|
OK
|
||||||
1
dotfiles/server/duckdns/duck.sh
Normal file
1
dotfiles/server/duckdns/duck.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
echo url="https://www.duckdns.org/update?domains=fscotto&token=d173a037-8a10-4e40-8d9d-bebedbdde086&ip=" | curl -k -o ~/duckdns/duck.log -K -
|
||||||
Reference in New Issue
Block a user