Преглед изворни кода

fetching for direct host connection

master
Markus Katharina Brechtel пре 7 година
родитељ
комит
68b710ee8d
2 измењених фајлова са 2 додато и 4 уклоњено
  1. +1
    -1
      tasks/fetch.yml
  2. +1
    -3
      tasks/main.yml

+ 1
- 1
tasks/fetch.yml Прегледај датотеку

@@ -2,7 +2,7 @@

- name: fetch ssh host key
command:
cat "{{ root_target_directory }}/etc/ssh/ssh_host_{{ ssh_host_key_type }}_key.pub"
cat "{{ root_target_directory | default("") }}/etc/ssh/ssh_host_{{ ssh_host_key_type }}_key.pub"
register: _ssh_host_key_cat_result
changed_when: false



+ 1
- 3
tasks/main.yml Прегледај датотеку

@@ -10,12 +10,10 @@
ssh_host_key_state is defined and
ssh_host_key_state == 'setup'

# TODO fail when root_target_directory is not defined
- include: fetch.yml
when:
root_target_directory is defined and (
not ssh_host_key_state is defined or
ssh_host_key_state == 'fetched' )
ssh_host_key_state == 'fetched'

- include: save.yml



Loading…
Откажи
Сачувај