Skip to content

Commit

Permalink
feat: Adding local stack host entries from Vault  only.
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Oct 7, 2024
1 parent 4205b99 commit 3b3e7d3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions roles/system/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,16 @@
mode: "0644"
become: true
when: not ansible_host_environment_is_wsl

- name: "System | Get Host from Vault"
ansible.builtin.command:
cmd: op --account my.1password.com read op://Raft/rdp-demo-local-ingress/notesPlain
register: rdp_demo_local_ingress_hosts
changed_when: false

- name: "System | Add Vault Hosts to /etc/hosts"
when: rdp_demo_local_ingress_hosts is defined
ansible.builtin.lineinfile:
line: "{{ rdp_demo_local_ingress_hosts.stdout }}"
path: /etc/hosts
become: true

0 comments on commit 3b3e7d3

Please sign in to comment.