Commit 3be72fc6 by Pablo Molina

Actualizados scripts de ansible para AWS

parent 07918801
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
with_items: with_items:
- mysql-server - mysql-server
- MySQL-python # required by ansible - MySQL-python # required by ansible
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' when: ansible_distribution == 'CentOS' or ansible_distribution == 'Amazon'
- name: Enable and start mysql service - name: Enable and start mysql service
service: service:
...@@ -50,9 +50,9 @@ ...@@ -50,9 +50,9 @@
name: mysqld name: mysqld
state: restarted state: restarted
enabled: yes enabled: yes
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' when: ansible_distribution == 'CentOS' or ansible_distribution == 'Amazon'
- name: Set mysql root password - name: Set mysql root password
shell: "/usr/bin/mysqladmin -u root password {{ mysql_root_passwd | quote }}" shell: "/usr/bin/mysqladmin -u root password {{ mysql_root_passwd | quote }}"
ignore_errors: yes ignore_errors: yes
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' when: ansible_distribution == 'CentOS' or ansible_distribution == 'Amazon'
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
yum: yum:
name: "https://rpm.nodesource.com/pub_{{ nodejs_major_version }}.x/el/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/nodesource-release-el{{ ansible_distribution_major_version }}-1.noarch.rpm" name: "https://rpm.nodesource.com/pub_{{ nodejs_major_version }}.x/el/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/nodesource-release-el{{ ansible_distribution_major_version }}-1.noarch.rpm"
state: present state: present
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' when: ansible_distribution == 'CentOS' or ansible_distribution == 'Amazon'
- name: Update apt-get cache - name: Update apt-get cache
apt: apt:
...@@ -42,4 +42,4 @@ ...@@ -42,4 +42,4 @@
name: nodejs name: nodejs
state: present state: present
enablerepo: 'epel,nodesource' enablerepo: 'epel,nodesource'
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' when: ansible_distribution == 'CentOS' or ansible_distribution == 'Amazon'
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
package: package:
name: libselinux-python name: libselinux-python
state: present state: present
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' when: ansible_distribution == 'CentOS' or ansible_distribution == 'Amazon'
- name: Install NPM dependencies - name: Install NPM dependencies
npm: npm:
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
package: package:
name: libselinux-python name: libselinux-python
state: present state: present
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' when: ansible_distribution == 'CentOS' or ansible_distribution == 'Amazon'
- name: Install git - name: Install git
package: package:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment