Created
September 7, 2018 00:15
-
-
Save srockstyle/4e7350bb325514ba9a6e4f5d2d5007e7 to your computer and use it in GitHub Desktop.
ansibleでリポジトリ追加祭り in CentOS 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks: | |
- name: set timezone to Asia/Tokyo | |
timezone: | |
name: Asia/Tokyo | |
- name: add epel | |
yum: | |
name: epel-release | |
state: latest | |
- name: add mysql repo | |
yum: | |
name: http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm | |
state: present | |
- name: add nodejs repo | |
shell: curl -sL https://rpm.nodesource.com/setup_8.x | sudo bash - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nodeはshellでやらなあかんかったんだが