Skip to content

Commit

Permalink
docs: Adding notes to fix system host vault entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Oct 10, 2024
1 parent fedf7ab commit 0091ff9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ op:
shell:
- name: OPENAI_API_KEY
vault_path: "op://Personal/Openai/OPENAI_KEY - Project"
# FIXME: See `system/tasks/main.yml` for how to structure this var looping.
# system:
# hosts:
# - item: op://Raft/rdp-demo-local-ingress/notesPlain
# account: my.1password.com

flatpak_packages:
- md.obsidian.Obsidian
Expand Down
4 changes: 4 additions & 0 deletions roles/system/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@
become: true
when: not ansible_host_environment_is_wsl

# FIXME: Follow the SSH vault.yml structure of looping over op keys
# and adding them to etc-hosts after the above template is laid down.
- 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

# FIXME: This needs to more dynamically apply op host entries.
# See above `fixme:` for more info
- name: "System | Add Vault Hosts to /etc/hosts"
when: rdp_demo_local_ingress_hosts is defined
ansible.builtin.lineinfile:
Expand Down

0 comments on commit 0091ff9

Please sign in to comment.