diff --git a/roles/init/files/id_rsa.pub b/roles/init/files/id_rsa.pub deleted file mode 100644 index 3cba7f1..0000000 --- a/roles/init/files/id_rsa.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCjPi74gAHT2GBbKWWmmUrzzrhKQN3mnz3DTWn02KhbgWs6MRLlTrn2fLqB4hkoVEOat29wAOJ2xuY4aEjGfO6nl/3ka3oqslwxW9GqFCRXVHnF3b+Wly+jkn3tbht+gjFK4x0np1WZbpTI/nR7gElWa774LCHy5i4fm5ISoCHzRMsKd3dVF4YOte6QC9Uu4uQQjpZWksYRjANtXAk5EDEOERz+Dh8RDkXbGYW2vx1ihNQGh53z3c6W6bajGq3qx/+G905MtRgutbHWOOYSE8o2q3vaDkCNA6Fjd3P6gHTPcRjFEfoHc8Vxp0vjR9e6ol8X7D+GEL6g6QN656772Zo3/Qka0rJ/zMnT3gZ2S4i0CzmqDoecbzDCX7ywwuwgvlmJGOswgwwOKP/E0/RnWi63BUFV/fU9o5nr9ZXgkiRa9ZCzubHZhxyN6Z7EhcOVnMbvfV1W5Fn/vbj84YudCLmzrk5qvpQ+qVsMXi1GPIEyFwyg/Afu5JTpNE5+4ViFzTM= jd@morefine \ No newline at end of file diff --git a/roles/init/tasks/main.yml b/roles/init/tasks/main.yml index 56cdccd..5057362 100755 --- a/roles/init/tasks/main.yml +++ b/roles/init/tasks/main.yml @@ -78,3 +78,26 @@ regexp: "^127.0.0.1 .*" line: "127.0.0.1 {{ inventory_hostname }} {{ inventory_hostname.split('.')[0] }}" state: present + + - name: Install required dependencies + ansible.builtin.dnf: + name: + - dnf-plugins-core + - curl + state: present + + - name: Add HashiCorp repository + ansible.builtin.get_url: + url: https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo + dest: /etc/yum.repos.d/hashicorp.repo + mode: "0644" + + - name: Clean DNF cache + ansible.builtin.command: dnf clean all + changed_when: false + + - name: Install Vault + ansible.builtin.dnf: + name: vault + state: present + update_cache: yes