Skip to content

Commit 06efe89

Browse files
committed
misc
1 parent d102f1b commit 06efe89

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

roles/common/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
- szeiger
1010

1111
- name: Install basic packages
12-
apt: name={{item}} state=installed
12+
apt: name={{item}} state=present
1313
with_items:
14+
- acl # so that become_user works (uses setfacl)
1415
- apt-transport-https
1516
- openjdk-8-jdk
1617
- git

roles/jenkins/tasks/main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
with_items:
3535
- "{{jenkins_home}}/.ssh"
3636

37-
# hmm, this fails on initial bootstrap, even though create jenkins user step is above
3837
- name: Worker ssh key pairs
3938
become_user: "{{jenkins_user}}"
4039
become: yes
@@ -53,16 +52,17 @@
5352
state: present
5453
update_cache: yes
5554

55+
# TODO: enable, but currently commented out to make sure we don't override jenkins config (it's not tracked automatically)
5656
# After making changes on jenkins, make sure to incorporate them back into this repo
5757
# using `rsync -av --existing jenkins@scala-ci.typesafe.com:~/ roles/jenkins/files`,
5858
# or they will be overwritten by this step from the files in roles/jenkins/files.
59-
- name: Copy jenkins config
60-
become_user: "{{jenkins_user}}"
61-
become: yes
62-
synchronize:
63-
src: ../files/
64-
dest: "{{jenkins_home}}"
65-
checksum: true
66-
rsync_opts:
67-
- "--chown={{jenkins_user}}:{{jenkins_user}}" # requires recent rsync!
68-
notify: restart jenkins
59+
# - name: Copy jenkins config
60+
# become_user: "{{jenkins_user}}"
61+
# become: yes
62+
# synchronize:
63+
# src: ../files/
64+
# dest: "{{jenkins_home}}"
65+
# checksum: true
66+
# rsync_opts:
67+
# - "--chown={{jenkins_user}}:{{jenkins_user}}" # requires recent rsync!
68+
# notify: restart jenkins

site.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
- worker
4343

4444
# To create the inital jenkins config, use `ansible-playbook site.yml --tags boot_jenkins` (after first doing a normal run)
45-
# - name: Bootstrap jenkins
46-
# hosts: master
47-
# gather_facts: yes
48-
# remote_user: "{{admin_user}}"
49-
# become: true
50-
# tasks:
51-
# - include_tasks: roles/jenkins/tasks/bootstrap.yml
52-
# tags:
53-
# - boot_jenkins
45+
- name: Bootstrap jenkins
46+
hosts: master
47+
gather_facts: yes
48+
remote_user: "{{admin_user}}"
49+
become: true
50+
tasks:
51+
- include_tasks: roles/jenkins/tasks/bootstrap.yml
52+
tags:
53+
- boot_jenkins
5454

5555
- name: Finish jenkins bootstrap using jenkins cli
5656
hosts: localhost
@@ -59,5 +59,5 @@
5959
become: false
6060
tasks:
6161
- include_tasks: roles/jenkins/tasks/bootstrap-cli.yml
62-
# tags:
63-
# - boot_jenkins
62+
tags:
63+
- boot_jenkins

0 commit comments

Comments
 (0)