This repository was archived by the owner on Apr 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +108
-1
lines changed Expand file tree Collapse file tree 4 files changed +108
-1
lines changed Original file line number Diff line number Diff line change 1
- # ansible-codedeploy-agent
1
+ # ansible-codedeploy-agent
2
+
3
+ The [ AWS CodeDeploy agent] ( http://docs.aws.amazon.com/codedeploy/latest/userguide/host-cleanup.html ) allows you to configure amazon EC2 instances for deployment with AWS CodeDeploy.
4
+
5
+ [ ![ Platforms] ( http://img.shields.io/badge/platforms-ubuntu-lightgrey.svg?style=flat )] ( # )
6
+
7
+ Tunables
8
+ --------
9
+ None
10
+
11
+ Dependencies
12
+ ------------
13
+ None
14
+
15
+ Example Playbook
16
+ ----------------
17
+ - hosts: servers
18
+ roles:
19
+ - role: telusdigital.codedeploy-agent
20
+
21
+ License
22
+ -------
23
+ [ MIT] ( https://tldrlegal.com/license/mit-license )
24
+
25
+ Contributors
26
+ ------------
27
+ * [ Ben Visser
] ( https://noqcks.io ) |
[ e-mail
] ( mailto:[email protected] )
28
+ * Aaron Pederson
29
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : service | codedeploy-agent | started
3
+ service :
4
+ name : codedeploy-agent
5
+ state : started
6
+
7
+ - name : service | codedeploy-agent | stopped
8
+ service :
9
+ name : codedeploy-agent
10
+ state : stopped
11
+
12
+ - name : service | codedeploy-agent | restarted
13
+ service :
14
+ name : codedeploy-agent
15
+ state : restarted
16
+
17
+ - name : service | codedeploy-agent | reloaded
18
+ service :
19
+ name : codedeploy-agent
20
+ state : reloaded
Original file line number Diff line number Diff line change
1
+ ---
2
+ galaxy_info :
3
+ author :
4
+ - Ben Visser (@noqcks)
5
+ - Aaron Pederson (@aaronpederson)
6
+ company : " TELUS digital"
7
+ description : " AWS CodeDeploy agent installation"
8
+ license : MIT
9
+ version : 0.1.0
10
+ platforms :
11
+ - name : debian
12
+ versions :
13
+ - all
14
+ - name : Ubuntu
15
+ versions :
16
+ - all
17
+ categories :
18
+ - networking
19
+ - system
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Install Packages | apt
3
+ apt :
4
+ state : latest
5
+ name : " {{ item }}"
6
+ update_cache : yes
7
+ with_items :
8
+ - python-pip
9
+ - ruby2.0
10
+ - git
11
+
12
+ - name : Install Packages | pip
13
+ pip :
14
+ state : latest
15
+ name : " {{ item }}"
16
+ with_items :
17
+ - awscli
18
+
19
+ - name : Get Instance Metadata | ec2
20
+ action : ec2_facts
21
+
22
+ - name : Get CodeDeploy | s3
23
+ s3 :
24
+ mode : get
25
+ region : " {{ ansible_ec2_placement_region }}"
26
+ bucket : " aws-codedeploy-{{ ansible_ec2_placement_region }}"
27
+ object : /latest/install
28
+ dest : /tmp/codedeploy-install
29
+
30
+ - name : Codedeploy Install Binary | Permission Executable
31
+ file :
32
+ state : file
33
+ path : /tmp/codedeploy-install
34
+ group : www-data
35
+ owner : www-data
36
+ mode : 0777
37
+
38
+ - name : Codedeploy Install
39
+ become : true
40
+ command : /tmp/codedeploy-install auto
You can’t perform that action at this time.
0 commit comments