浏览代码

better descrstiptions and setup ho

master
父节点
当前提交
6543600935
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. +1
    -1
      tasks/fetch.yml
  2. +3
    -1
      tasks/setup.yml

+ 1
- 1
tasks/fetch.yml 查看文件

@@ -6,7 +6,7 @@
register: _ssh_host_key_cat_result
changed_when: false

- name: set ssh_host_key_ed25519_public
- name: set fetched ssh_host_key_ed25519_public
set_fact:
ssh_host_key_ed25519_public: "{{ _ssh_host_key_cat_result.stdout.split()[1] }}"
changed_when: ssh_host_key_ed25519_public != _ssh_host_key_cat_result.stdout.split()[1]


+ 3
- 1
tasks/setup.yml 查看文件

@@ -1,6 +1,8 @@
---

- name: set ssh_host_key_ed25519_public
- setup:

- name: set ssh_host_key_ed25519_public from setup
set_fact:
ssh_host_key_ed25519_public: "{{ ansible_ssh_host_key_ed25519_public }}"
changed_when: ssh_host_key_ed25519_public != ansible_ssh_host_key_ed25519_public


正在加载...
取消
保存