Commit 092540ff authored by eric pellegrini's avatar eric pellegrini

removed hardcoded user section in install_public_key.yml

parent ec0abd72
......@@ -7,19 +7,6 @@
- name: install public key
authorized_key:
user: root
user: "{{ user_name }}"
state: present
key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
- hosts: master
remote_user: root
tasks:
- name: install public key
authorized_key:
user: kub-admin
state: present
key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment