Skip to content

Commit

Permalink
Fix: install httplib2 for GCE's Ubuntu 14.04 instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
William-Yeh committed Jan 4, 2016
1 parent 9efe96d commit 7ae6c81
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 4 deletions.
10 changes: 10 additions & 0 deletions 05-success/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,22 @@ Common stages:
- initialize, update, rollback


### Be open for surprise...

Different IaaS/VM providers may have different pre-installed packages. For example, even with the same "Ubuntu 14.04 LTS" VM image:

- In Vagrant box [`ubuntu/trusty64`](https://atlas.hashicorp.com/ubuntu/boxes/trusty64), the Python library `httplib2` is pre-installed.
- In Google Compute Engine `Ubuntu 14.04 LTS` (amd64 trusty image built on 2015-11-13), the Python library `httplib2` is *not* pre-installed.


### 用到的 module(s)

- Files modules / [template](http://docs.ansible.com/ansible/template_module.html): Templates a file out to a remote server.

- System modules / [service](http://docs.ansible.com/ansible/service_module.html): Manage services.

- Packaging modules / [apt](http://docs.ansible.com/ansible/apt_module.html): Manages apt-packages.

- Network modules / [uri](http://docs.ansible.com/uri_module.html): Interacts with webservices.


Expand Down
3 changes: 3 additions & 0 deletions 05-success/hosts-azure
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[azure-host]
111.222.333.444

6 changes: 6 additions & 0 deletions 05-success/hosts-ec2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ec2-host

[wordpress]
111.111.111.111 ansible_ssh_user=ubuntu
#111.111.111.111 ansible_user=ubuntu

6 changes: 6 additions & 0 deletions 05-success/hosts-gce
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# gce-host

[wordpress]
mywordpress ansible_ssh_host=104.0.0.100
#mywordpress ansible_host=104.0.0.100

8 changes: 7 additions & 1 deletion 05-success/init-wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
blog_email: [email protected]

tasks:
- name: ==> 12 - automate the '5-minute install' process
- debug: ==> 12 - automate the '5-minute install' process

- name: install dependency - httplib2
apt: name=python-httplib2 state=present
#pip: name=httplib2

- name: send POST to WordPress install wizard
uri:
url: "{{ wordpress_install_url }}"
method: POST
Expand Down
8 changes: 7 additions & 1 deletion 06-ci/init-wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
blog_email: [email protected]

tasks:
- name: ==> 12 - automate the '5-minute install' process
- debug: ==> 12 - automate the '5-minute install' process

- name: install dependency - httplib2
apt: name=python-httplib2 state=present
#pip: name=httplib2

- name: send POST to WordPress install wizard
uri:
url: "{{ wordpress_install_url }}"
method: POST
Expand Down
8 changes: 7 additions & 1 deletion 10-role/init-wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
blog_email: [email protected]

tasks:
- name: ==> 12 - automate the '5-minute install' process
- debug: ==> 12 - automate the '5-minute install' process

- name: install dependency - httplib2
apt: name=python-httplib2 state=present
#pip: name=httplib2

- name: send POST to WordPress install wizard
uri:
url: "{{ wordpress_install_url }}"
method: POST
Expand Down
8 changes: 7 additions & 1 deletion 11-galaxy/init-wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
blog_email: [email protected]

tasks:
- name: ==> 12 - automate the '5-minute install' process
- debug: ==> 12 - automate the '5-minute install' process

- name: install dependency - httplib2
apt: name=python-httplib2 state=present
#pip: name=httplib2

- name: send POST to WordPress install wizard
uri:
url: "{{ wordpress_install_url }}"
method: POST
Expand Down

0 comments on commit 7ae6c81

Please sign in to comment.