Commit a496a73c authored by nanahira's avatar nanahira

fix

parent 7dac378d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- hosts: runner-template - hosts: runner-template
remote_user: root remote_user: root
vars: vars:
authorized_keys: false authorized_keys: "{{ lookup('file', './roles/init/files/authorized_keys') }}"
allow_password: false allow_password: false
upgrade: true upgrade: true
reboot: true reboot: true
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
docker_template_path: ./roles/init/templates/daemon.json.j2 docker_template_path: ./roles/init/templates/daemon.json.j2
registry: https://registry.mycard.moe registry: https://registry.mycard.moe
tasks: tasks:
- name: authorized_key
authorized_key:
user: "{{ ansible_user_id }}"
key: "{{ lookup('file', './roles/init/files/authorized_keys') }}"
- name: tasks from init - name: tasks from init
include_tasks: './roles/init/tasks/{{item}}.yml' include_tasks: './roles/init/tasks/{{item}}.yml'
with_items: with_items:
......
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