Skip to content

Commit d102f1b

Browse files
committed
fix artifactory initial install
1 parent 0f9f5a7 commit d102f1b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

roles/artifactory/tasks/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
---
2-
- name: Create user
3-
user: name={{artifactory_user}} home={{artifactory_home}}
4-
52
- name: Add the jfrog gpg key
63
apt_key:
74
url: "https://bintray.com/user/downloadSubjectPublicKey?username=jfrog"
@@ -19,6 +16,10 @@
1916
state: present
2017
update_cache: yes
2118

19+
- name: Create user
20+
user: name={{artifactory_user}} home={{artifactory_home}}
21+
22+
# TODO: in addition to the data, should store /var/opt/jfrog/artifactory/{etc,misc, logs} on separate volume as well
2223
- name: Mount artifactory filestore
2324
mount:
2425
src: "{{ec2_vol_artifactory.device_name}}"

roles/jenkins/tasks/main.yml

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

37+
# hmm, this fails on initial bootstrap, even though create jenkins user step is above
3738
- name: Worker ssh key pairs
3839
become_user: "{{jenkins_user}}"
3940
become: yes

0 commit comments

Comments
 (0)