Added sample-run for tensorflow
This commit is contained in:
26
sample-run/tensorflow/roles/packages/README.md
Normal file
26
sample-run/tensorflow/roles/packages/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# The `packages` Role
|
||||
|
||||
The `packages` role installs the operating system and Python pre-requisites that are required to execute the other roles.
|
||||
|
||||
This role may be executed independently by running:
|
||||
|
||||
```bash
|
||||
$ ansible-playbook packages.yml --tags "packages"
|
||||
```
|
||||
|
||||
On execution, this role installs the following directly to the remote machine's operating system:
|
||||
|
||||
### Operating System Packages (Debian/Ubuntu)
|
||||
|
||||
- apt-transport-https v1.x
|
||||
- ca-certificates v20180409
|
||||
- curl v7.x
|
||||
- gnupg-agent v2.x
|
||||
- python-apt v1.x
|
||||
- python-pip v9.x
|
||||
- python-setuptools v39.x
|
||||
- software-properties-common v0.96.24.32.7
|
||||
|
||||
### Python (pip) Packages
|
||||
|
||||
- docker v3.7.0 or greater
|
||||
0
sample-run/tensorflow/roles/packages/files/.gitkeep
Normal file
0
sample-run/tensorflow/roles/packages/files/.gitkeep
Normal file
0
sample-run/tensorflow/roles/packages/meta/.gitkeep
Normal file
0
sample-run/tensorflow/roles/packages/meta/.gitkeep
Normal file
12
sample-run/tensorflow/roles/packages/tasks/debian.yml
Normal file
12
sample-run/tensorflow/roles/packages/tasks/debian.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
# General Dependencies
|
||||
- name: install general apt dependencies
|
||||
apt:
|
||||
name: "{{ general.dependencies.apt }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: install general pip dependencies for Ansible
|
||||
pip:
|
||||
name: "{{ general.dependencies.pip }}"
|
||||
state: present
|
||||
3
sample-run/tensorflow/roles/packages/tasks/main.yml
Normal file
3
sample-run/tensorflow/roles/packages/tasks/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
- import_tasks: debian.yml
|
||||
when: ansible_facts['os_family']|lower == 'debian' # debian, ubuntu
|
||||
15
sample-run/tensorflow/roles/packages/vars/main.yml
Normal file
15
sample-run/tensorflow/roles/packages/vars/main.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
# General Dependencies
|
||||
general:
|
||||
dependencies:
|
||||
apt:
|
||||
- apt-transport-https # known good with 1.6.6ubuntu0.1 all
|
||||
- ca-certificates # known good with 20180409
|
||||
- curl # known good with 7.58.0-2ubuntu3.5
|
||||
- gnupg-agent # known good with 2.2.4-1ubuntu1.2
|
||||
- python3-pip # known good with 9.0.1-2.3~ubuntu1
|
||||
- software-properties-common # known good with 0.96.24.32.7
|
||||
- git
|
||||
- golang
|
||||
pip:
|
||||
- docker>=3.7.0 # known good with 3.7.0
|
||||
Reference in New Issue
Block a user