Commit 54e4cd8d by Stuart Young

curl files from files.edx.org for jenkins worker

parent d2d5a46a
...@@ -17,18 +17,13 @@ ...@@ -17,18 +17,13 @@
ignore_errors: yes ignore_errors: yes
- name: Get the authorized key that should be used for this machine. - name: Get the authorized key that should be used for this machine.
authorized_key: shell: "curl {{ jenkins_worker_key_url }} -o {{ jenkins_home }}/.ssh/authorized_keys"
user: "{{ jenkins_user }}"
state: present
key: "{{ jenkins_worker_key_url }}"
when: jenkins_worker_key_url is defined when: jenkins_worker_key_url is defined
ignore_errors: yes
- name: Set key permissions - name: Set key permissions
file: file:
path={{ jenkins_home }}/.ssh/authorized_keys path={{ jenkins_home }}/.ssh/authorized_keys
owner={{ jenkins_user }} group={{ jenkins_group }} mode=400 owner={{ jenkins_user }} group={{ jenkins_group }} mode=400
ignore_errors: yes
- name: Install system packages - name: Install system packages
apt: pkg={{','.join(jenkins_debian_pkgs)}} apt: pkg={{','.join(jenkins_debian_pkgs)}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment