Commit c66ef3e7 authored by nanahira's avatar nanahira

update

parent 6c1201ec
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
- name: authorized_key - name: authorized_key
authorized_key: authorized_key:
user: "{{ ansible_user_id }}" user: "{{ ansible_user_id }}"
key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}" key: "{{ lookup('file', './authorized_keys') }}"
# when: "ansible_distribution != 'CentOS' or ansible_distribution_major_version|int != 8" # when: "ansible_distribution != 'CentOS' or ansible_distribution_major_version|int != 8"
- name: sudoers - name: sudoers
become: true become: true
......
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