Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3be72fc6
authored
Jun 02, 2016
by
Pablo Molina
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Actualizados scripts de ansible para AWS
parent
07918801
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
sails/roles/mysql/tasks/main.yml
sails/roles/nodejs/tasks/main.yml
sails/roles/server/tasks/main.yml
sails/roles/webapp/tasks/main.yml
sails/roles/mysql/tasks/main.yml
View file @
3be72fc6
...
@@ -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
'
sails/roles/nodejs/tasks/main.yml
View file @
3be72fc6
...
@@ -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
'
sails/roles/server/tasks/main.yml
View file @
3be72fc6
...
@@ -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
:
...
...
sails/roles/webapp/tasks/main.yml
View file @
3be72fc6
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment