Add wget role for macOS & Debian
This commit is contained in:
parent
3272331f08
commit
854bf8d1e9
5
roles/wget/tasks/Darwin.yaml
Normal file
5
roles/wget/tasks/Darwin.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- name: install homebrew package
|
||||||
|
homebrew:
|
||||||
|
name: wget
|
||||||
|
state: latest
|
5
roles/wget/tasks/Debian.yaml
Normal file
5
roles/wget/tasks/Debian.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- name: install apt package
|
||||||
|
apt:
|
||||||
|
name: wget
|
||||||
|
state: latest
|
16
roles/wget/tasks/main.yaml
Normal file
16
roles/wget/tasks/main.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
- include_tasks: '{{ansible_os_family}}.yaml'
|
||||||
|
|
||||||
|
- name: create directories
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
dest: '{{item}}'
|
||||||
|
with_items:
|
||||||
|
- ~/.config/wget
|
||||||
|
- ~/.cache/wget
|
||||||
|
|
||||||
|
- name: create config file
|
||||||
|
copy:
|
||||||
|
content: |
|
||||||
|
hsts-file = {{ansible_env.HOME}}/.cache/wget/hsts
|
||||||
|
dest: ~/.config/wget/rc
|
Loading…
x
Reference in New Issue
Block a user