Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
ignore error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrieu, Alban committed Nov 24, 2017
1 parent 6ff04ca commit 1b22ffb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tasks/ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
owner={{jenkins_user}}
group={{jenkins_group}}
mode=0600
register: key
become: yes
register: key
when: jenkins_ssh_key_file != ""
become: yes
ignore_errors: yes

- name: jenkins-ssh | Create private key
command: /usr/bin/ssh-keygen -A
become: yes
when: key|failed
become: yes

- name: jenkins-ssh | Copy private key for jenkins
copy: >
Expand All @@ -27,14 +27,15 @@
group={{jenkins_group}}
mode=0600
register: key
become_user: "{{ jenkins_user }}"
when: jenkins_ssh_key_file != ""
become_user: "{{ jenkins_user }}"
ignore_errors: yes

- name: jenkins-ssh | Create private key for jenkins
command: /usr/bin/ssh-keygen -A
become_user: "{{ jenkins_user }}"
when: key|failed
become_user: "{{ jenkins_user }}"
ignore_errors: yes

- name: jenkins-ssh | Setup SSH hosts
lineinfile:
Expand Down

0 comments on commit 1b22ffb

Please sign in to comment.