소스 검색

Post webinar commit

Ubuntu 6 년 전
부모
커밋
2112c7d82c

+ 2 - 1
2_create_machine/create.yml

@@ -10,10 +10,11 @@
         image: ami-0cca6df87334a74bd
         instance_tags: 
           type: webinar
+          system: example
+          third_tag: 3
         instance_type: t2.micro
         key_name: webinar
         wait: true
-        user_data: "apt-get update && apt-get upgrade -y&& apt-get install -y python python-pip"
       name: "create machine"
       register: ec2
 

+ 9 - 0
3_install_dependencies/example.yml

@@ -0,0 +1,9 @@
+---
+-
+  gather_facts: false
+  hosts: localhost
+  vars:
+    example: "555"
+  tasks:
+    - debug:
+      msg: "{{ example }}"

+ 1 - 2
3_install_dependencies/lamp.yml

@@ -1,7 +1,7 @@
 ---
 -
   gather_facts: false
-  hosts: tag_type_webinar
+  hosts: tag_system_wordpress
   become: yes
   vars:
     mysql_root_password: "mypass"
@@ -19,7 +19,6 @@
         - php-gd
         - php-curl
         - php-mysql
-        - php-dom
         - php-xml
 
     - name: Enable apache2 modules

+ 2 - 0
3_install_dependencies/vars/main.yml

@@ -0,0 +1,2 @@
+---
+example: "1234"

+ 0 - 1
4_install_wordpress/wordpress.retry

@@ -1 +0,0 @@
-35.178.251.165

+ 0 - 1
4_install_wordpress_role/lamp.retry

@@ -1 +0,0 @@
-52.56.171.96

+ 0 - 1
4_install_wordpress_role/wordpress.retry

@@ -1 +0,0 @@
-35.178.251.165

+ 1 - 1
5_install_git_server/gogs.yml

@@ -4,6 +4,6 @@
   hosts: tag_system_gogs
   become: yes
   vars:
-    gogs_http_port: "80"
+    gogs_http_port: "8080"
   roles:
     - geerlingguy.gogs

+ 8 - 0
cheats/cheats.txt

@@ -0,0 +1,8 @@
+some people asked for the cheats I did so the demo will go easy ;-)
+
+1. I used the setssh.sh file to create a bash that adds the key.pem to the bash session so I won't have to type: "-i ~/key.pem " every time I use ansible
+2. The AWS AMI had python pre installed normally AMIs are bare ubuntu without python 
+3. I created alias in .bashrc for removing retry files :
+   "alias r=rm *.retry"
+
+All the rest are regular vim and bash use ...

+ 2 - 0
cheats/setssh.sh

@@ -0,0 +1,2 @@
+ssh-agent bash
+ssh-add ~/webinar.pem