Skip to content

Commit

Permalink
add contour config file
Browse files Browse the repository at this point in the history
  • Loading branch information
adasium committed Jul 8, 2024
1 parent 47f6032 commit 6a9d54a
Show file tree
Hide file tree
Showing 3 changed files with 755 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ansible/dotfiles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ansible-playbook -i inventory.yaml dotfiles.yaml
- name: dotfiles
hosts: localhost
vars:
CONTOUR_CONFIG: $HOME/.config/contour/contour.yml
tasks:
- name: stat config file
stat:
path: '{{ CONTOUR_CONFIG }}'
register: contour_config
- name: remove existing config file
when: contour_config.stat.isreg is defined and contour_config.stat.isreg
ansible.builtin.file:
state: absent
path: '{{ contour_config.stat.path }}'
- name: link contour config file
file:
src: '{{ DOTFILES }}/contour/contour.yml'
dest: '{{ CONTOUR_CONFIG }}'
state: link
2 changes: 2 additions & 0 deletions ansible/inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ all:
hosts:
localhost:
ansible_connection: local
vars:
DOTFILES: $HOME/dotfiles
Loading

0 comments on commit 6a9d54a

Please sign in to comment.