homework 9.4: fix ansible playbook

This commit is contained in:
2022-09-07 09:32:10 +07:00
parent 3719f701ed
commit f9f6fd45c5

View File

@@ -65,6 +65,7 @@
when: jenkins_installed is changed when: jenkins_installed is changed
- name: Ensure github.com is a known host - name: Ensure github.com is a known host
become: true become: true
become_user: "{{ jenkins_user_name }}"
lineinfile: lineinfile:
dest: ~/.ssh/known_hosts dest: ~/.ssh/known_hosts
create: yes create: yes