-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from centerforaisafety/cais_ansible_playbooks
Install LLVM, gflags, glog, tmux, and zsh.
- Loading branch information
Showing
9 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- hosts: all | ||
roles: | ||
- cais-all |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- hosts: bastion,login | ||
roles: | ||
- cais-bastion-login |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- hosts: compute | ||
roles: | ||
- cais-compute |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- include: ol-7.yml | ||
when: ansible_os_family == 'RedHat' and ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '7' | ||
|
||
- include: centos-7.yml | ||
when: ansible_os_family == 'RedHat' and ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7' | ||
|
||
- include: ubuntu.yml | ||
when: ansible_distribution == 'Ubuntu' | ||
|
||
- include: debian.yml | ||
when: ansible_distribution == 'Debian' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: Install zsh | ||
vars: | ||
package_name: | ||
- zsh | ||
package_state: latest | ||
package_repo: "epel,ol7_developer_EPEL" | ||
include_role: | ||
name: safe_yum | ||
ignore_errors: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- include: ol-7.yml | ||
when: ansible_os_family == 'RedHat' and ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '7' | ||
|
||
- include: centos-7.yml | ||
when: ansible_os_family == 'RedHat' and ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7' | ||
|
||
- include: ubuntu.yml | ||
when: ansible_distribution == 'Ubuntu' | ||
|
||
- include: debian.yml | ||
when: ansible_distribution == 'Debian' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: Install tmux | ||
vars: | ||
package_name: | ||
- tmux | ||
package_state: latest | ||
package_repo: "epel,ol7_developer_EPEL" | ||
include_role: | ||
name: safe_yum | ||
ignore_errors: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- include: ol-7.yml | ||
when: ansible_os_family == 'RedHat' and ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '7' | ||
|
||
- include: centos-7.yml | ||
when: ansible_os_family == 'RedHat' and ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7' | ||
|
||
- include: ubuntu.yml | ||
when: ansible_distribution == 'Ubuntu' | ||
|
||
- include: debian.yml | ||
when: ansible_distribution == 'Debian' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
- name: Install SCL for GCC v5 | ||
vars: | ||
package_name: | ||
- devtoolset-5-gcc.x86_64 | ||
- devtoolset-5-gcc-c++.x86_64 | ||
- devtoolset-5-gcc-gdb-plugin.x86_64 | ||
- devtoolset-5-gcc-gfortran.x86_64 | ||
- devtoolset-5-gcc-plugin-devel.x86_64 | ||
package_state: latest | ||
package_repo: "epel,ol7_developer_EPEL" | ||
include_role: | ||
name: safe_yum | ||
ignore_errors: true | ||
- name: Install SCL for GCC v6 | ||
vars: | ||
package_name: | ||
- devtoolset-6-gcc.x86_64 | ||
- devtoolset-6-gcc-c++.x86_64 | ||
- devtoolset-6-gcc-gdb-plugin.x86_64 | ||
- devtoolset-6-gcc-gfortran.x86_64 | ||
- devtoolset-6-gcc-plugin-devel.x86_64 | ||
package_state: latest | ||
package_repo: "epel,ol7_developer_EPEL" | ||
include_role: | ||
name: safe_yum | ||
ignore_errors: true | ||
- name: Install SCL for GCC v8 | ||
vars: | ||
package_name: | ||
- devtoolset-8-gcc.x86_64 | ||
- devtoolset-8-gcc-c++.x86_64 | ||
- devtoolset-8-gcc-gdb-plugin.x86_64 | ||
- devtoolset-8-gcc-gfortran.x86_64 | ||
- devtoolset-8-gcc-plugin-devel.x86_64 | ||
package_state: latest | ||
package_repo: "epel,ol7_developer_EPEL" | ||
include_role: | ||
name: safe_yum | ||
ignore_errors: true | ||
- name: Install SCL for GCC v10 | ||
vars: | ||
package_name: | ||
- devtoolset-10-gcc.x86_64 | ||
- devtoolset-10-gcc-c++.x86_64 | ||
- devtoolset-10-gcc-gdb-plugin.x86_64 | ||
- devtoolset-10-gcc-gfortran.x86_64 | ||
- devtoolset-10-gcc-plugin-devel.x86_64 | ||
package_state: latest | ||
package_repo: "epel,ol7_developer_EPEL" | ||
include_role: | ||
name: safe_yum | ||
ignore_errors: true | ||
- name: Install llvm | ||
vars: | ||
package_name: | ||
- llvm-toolset-7.0 | ||
package_state: latest | ||
package_repo: "epel,ol7_developer_EPEL" | ||
include_role: | ||
name: safe_yum | ||
ignore_errors: true | ||
- name: Install gflags | ||
vars: | ||
package_name: | ||
- gflags-devel.x86_64 | ||
- gflags.x86_64 | ||
package_state: latest | ||
package_repo: "epel,ol7_developer_EPEL" | ||
include_role: | ||
name: safe_yum | ||
ignore_errors: true | ||
- name: Install glog | ||
vars: | ||
package_name: | ||
- glog.x86_64 | ||
- glog-devel.x86_64 | ||
package_state: latest | ||
package_repo: "epel,ol7_developer_EPEL" | ||
include_role: | ||
name: safe_yum | ||
ignore_errors: true |