mirror of
https://github.com/Dannecron/netology-devops.git
synced 2025-12-25 23:32:37 +03:00
homework 9.4: fix ansible playbook
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user