Skip to content

Commit

Permalink
chore(ansible:tasks): create ~/.ssh directory before linking ssh al…
Browse files Browse the repository at this point in the history
…lowd signers file

  ## what
  - create `~/.ssh` directory before linking ssh allow signers file

  ## how

  ## why
  - if the directory isn't created, the step for linking `allowed
    signers` fails because `~/.ssh` directory doesn't exist

  ## where
  - ./tasks/git.yaml

  ## usage

  ## issue or pull request
  • Loading branch information
Clumsy-Coder committed Jan 31, 2024
1 parent 4f169d0 commit e6a5ee0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/git.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
- git
- terminal

- name: "git: create ~/.ssh directory"
file:
path: "{{ ansible_env.HOME }}/.ssh"
state: directory
tags:
- git
- terminal

- name: "git: Add git allowed signers to {{ ansible_env.GIT_ALLOWED_SIGNERS }}"
file:
src: "{{ ansible_env.DOTDIR }}/tools/git/allowed_signers"
Expand Down

0 comments on commit e6a5ee0

Please sign in to comment.