summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README4
-rw-r--r--roles/pipeliner/files/mailsettings12
-rw-r--r--roles/pipeliner/tasks/pipeline.yml16
3 files changed, 30 insertions, 2 deletions
diff --git a/README b/README
index a030589..bf36167 100644
--- a/README
+++ b/README
@@ -14,10 +14,10 @@ To create a fresh pipeliner image:
aws ec2 run-instances --image-id <imageid> --instance-type t2.micro --security-groups launch-wizard-1 --key-name awsdev2 --iam-instance-profile Name=pipeliner
- Get public IP address of the instance once it is running:
- lspipeline
+ lspipeline -nobooks
- Update the ansible_host variable with the public IP of the new instance:
- rescribe/2018/ansible/host_vars/pipelineami
+ host_vars/pipelineami
- Run ansible:
ansible-playbook -i hosts pipeliner.yml
diff --git a/roles/pipeliner/files/mailsettings b/roles/pipeliner/files/mailsettings
new file mode 100644
index 0000000..d098bbd
--- /dev/null
+++ b/roles/pipeliner/files/mailsettings
@@ -0,0 +1,12 @@
+$ANSIBLE_VAULT;1.1;AES256
+66623231623965346638613264643232366533643563316335666133323734346433633437633339
+3961383366353463383539636266383439333232323964620a613334653835393365643061333130
+32633231346564613236616536313631646166383838656530616639633165663738646530326166
+6466653563663435640a366430393966663162333565393834383865623463393733613431623031
+39383633353361663735643439613463306235613066336139323334663730663435663731353335
+63303061326534393261313832653737376231393563656133396134636237613264303136653632
+38323530663063326430653035666634303065343966646366613365343438343133646631666539
+34346161656339633633383434363631323466646237613037346636636566313063343031323835
+34383366633261316662343863643336666262666138666165353763363835373234656631623239
+64356439646437303233636564313761653964396266616530326537353735633536363631643538
+333630386435303963623863643239316334
diff --git a/roles/pipeliner/tasks/pipeline.yml b/roles/pipeliner/tasks/pipeline.yml
index 7186f83..582e5de 100644
--- a/roles/pipeliner/tasks/pipeline.yml
+++ b/roles/pipeliner/tasks/pipeline.yml
@@ -56,6 +56,22 @@
group: root
mode: 0755
+- name: Create settings directory
+ file:
+ path: /home/admin/.config/bookpipeline
+ state: directory
+ owner: admin
+ group: admin
+ mode: 0755
+
+- name: Install mail settings
+ copy:
+ src: mailsettings
+ dest: /home/admin/.config/bookpipeline/mailsettings
+ owner: admin
+ group: admin
+ mode: 0600
+
- name: Install systemd unit file
copy: src=bookpipeline.service dest=/etc/systemd/system
notify: reload daemons