This repository has been archived by the owner on Jan 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
350 additions
and
102 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
recursive-include accelpy * | ||
recursive-exclude accelpy *.pyc | ||
recursive-exclude accelpy *.pyc .ansible-lint | ||
prune accelpy/_ansible/roles/*/molecule |
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
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
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
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,5 @@ | ||
skip_list: | ||
- '701' | ||
- '702' | ||
- '703' | ||
- '704' |
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 |
---|---|---|
@@ -1,27 +1,33 @@ | ||
--- | ||
galaxy_info: | ||
author: Accelize | ||
description: 'Initialize host with FPGA driver and common tasks.' | ||
min_ansible_version: 2.8 | ||
license: Apache License 2.0 | ||
platforms: | ||
- name: Ubuntu | ||
versions: | ||
- bionic | ||
|
||
dependencies: | ||
# System update | ||
- role: common.update_system | ||
|
||
# Security hardening | ||
- role: dev-sec.os-hardening | ||
vars: | ||
ufw_manage_defaults: false | ||
os_auth_pam_passwdqc_enable: false | ||
when: os_hardening | bool | ||
|
||
- role: dev-sec.ssh-hardening | ||
vars: | ||
ssh_allow_users: "{{ remote_user }}" | ||
when: ssh_hardening | bool | ||
|
||
# System reboot | ||
- role: common.reboot_system | ||
|
||
# FPGA drivers | ||
|
||
- role: 'accelize.aws_fpga' | ||
vars: | ||
aws_fpga_allow_non_root: true | ||
aws_fpga_sdk_override_group: true | ||
when: accelize_drm_driver_name == 'aws_f1' | ||
|
||
- role: 'accelize.xilinx_xrt' | ||
when: accelize_drm_driver_name == 'xrt' | ||
|
||
# Accelize DRM | ||
- accelize.accelize_drm |
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,5 @@ | ||
skip_list: | ||
- '701' | ||
- '702' | ||
- '703' | ||
- '704' |
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 @@ | ||
--- | ||
- name: Ensure system is rebooted | ||
reboot: |
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,5 @@ | ||
skip_list: | ||
- '701' | ||
- '702' | ||
- '703' | ||
- '704' |
26 changes: 26 additions & 0 deletions
26
accelpy/_ansible/roles/common.update_system/tasks/main.yml
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,26 @@ | ||
--- | ||
- name: Ensure Apt cache is up to date | ||
apt: | ||
update_cache: true | ||
retries: 10 | ||
delay: 1 | ||
when: ansible_os_family == 'Debian' | ||
|
||
- name: Ensure system is up to date | ||
apt: | ||
name: "*" | ||
state: latest | ||
update_cache: true | ||
autoremove: true | ||
purge: true | ||
retries: 10 | ||
delay: 1 | ||
when: ansible_os_family == 'Debian' | ||
|
||
- name: Ensure system is up to date | ||
yum: | ||
name: "*" | ||
state: latest | ||
retries: 10 | ||
delay: 1 | ||
when: ansible_os_family == 'RedHat' |
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,5 @@ | ||
skip_list: | ||
- '701' | ||
- '702' | ||
- '703' | ||
- '704' |
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
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,5 @@ | ||
skip_list: | ||
- '701' | ||
- '702' | ||
- '703' | ||
- '704' |
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
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
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
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
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
Oops, something went wrong.