Skip to content

Instantly share code, notes, and snippets.

@srockstyle
Created September 7, 2018 00:15
Show Gist options
  • Save srockstyle/4e7350bb325514ba9a6e4f5d2d5007e7 to your computer and use it in GitHub Desktop.
Save srockstyle/4e7350bb325514ba9a6e4f5d2d5007e7 to your computer and use it in GitHub Desktop.
ansibleでリポジトリ追加祭り in CentOS 7
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 -
@srockstyle
Copy link
Author

nodeはshellでやらなあかんかったんだが

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment