syncing some fixes
This commit is contained in:
21
playbooks/02_patching.yml
Normal file
21
playbooks/02_patching.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- name: apply non-kernel updates
|
||||
hosts: "{{ HOSTS | default('all') }}"
|
||||
become: yes
|
||||
gather_facts: no
|
||||
|
||||
tasks:
|
||||
- name: upgrade all pacakges except kernel
|
||||
yum:
|
||||
name: '*'
|
||||
state: latest
|
||||
exclude: kernel*
|
||||
tags: all
|
||||
|
||||
- name: upgrade all packages security related except kernel
|
||||
yum:
|
||||
name: '*'
|
||||
state: latest
|
||||
security: yes
|
||||
exclude: kernel*
|
||||
tags: security
|
||||
8
playbooks/group_vars/all/02_patching.yml
Normal file
8
playbooks/group_vars/all/02_patching.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
survey_patching:
|
||||
name: ''
|
||||
description: ''
|
||||
spec:
|
||||
- question_name: 'Enter host to configure'
|
||||
type: text
|
||||
variable: HOSTS
|
||||
required: false
|
||||
@@ -1,10 +1,10 @@
|
||||
demos:
|
||||
deploy_application:
|
||||
author: "Sean Cavanaugh"
|
||||
name: "Deploy Application (survey)"
|
||||
description: "install yum applications on Linux with a survey"
|
||||
job_type: "run"
|
||||
inventory: "Workshop Inventory"
|
||||
project: "Ansible official demo project"
|
||||
playbook: "playbooks/01_deploy_application.yml"
|
||||
credential: "Workshop Credential"
|
||||
survey_enabled: yes
|
||||
@@ -15,16 +15,35 @@ demos:
|
||||
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
||||
organization: "Default"
|
||||
scm_type: git
|
||||
github_url: "https://github.com/ansible/product-demos"
|
||||
scm_url: "https://github.com/ansible/product-demos"
|
||||
workshop_type:
|
||||
- f5
|
||||
- rhel
|
||||
patching:
|
||||
author: "Will Tome"
|
||||
name: "SERVER / Patching"
|
||||
description: "patching for Linux servers"
|
||||
job_type: "run"
|
||||
inventory: "Workshop Inventory"
|
||||
playbook: "playbooks/02_patching.yml"
|
||||
credential: "Workshop Credential"
|
||||
survey_enabled: yes
|
||||
survey_spec: "{{survey_patching}}"
|
||||
project:
|
||||
name: "Ansible official demo project"
|
||||
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
||||
organization: "Default"
|
||||
scm_type: git
|
||||
scm_url: "https://github.com/ansible/product-demos"
|
||||
workshop_type:
|
||||
- f5
|
||||
- rhel
|
||||
windows_iis:
|
||||
author: "Colin McNaughton"
|
||||
name: "Windows IIS Server"
|
||||
description: "install webserver on Windows Server with a survey"
|
||||
job_type: "run"
|
||||
inventory: "Workshop Inventory"
|
||||
project: "Ansible official demo project"
|
||||
playbook: "playbooks/05_windows_iis.yml"
|
||||
credential: "Demo Credential"
|
||||
survey_enabled: no
|
||||
@@ -33,15 +52,15 @@ demos:
|
||||
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
||||
organization: "Default"
|
||||
scm_type: git
|
||||
github_url: "https://github.com/ansible/product-demos"
|
||||
scm_url: "https://github.com/ansible/product-demos"
|
||||
workshop_type:
|
||||
- windows
|
||||
openscap:
|
||||
author: "Sean Cavanaugh"
|
||||
name: "Create Openscap Report"
|
||||
description: "Create HTML report using SCAP Security Guide (SSG)"
|
||||
job_type: "run"
|
||||
inventory: "Workshop Inventory"
|
||||
project: "Ansible official demo project"
|
||||
playbook: "playbooks/10_openscap.yml"
|
||||
credential: "Workshop Credential"
|
||||
survey_enabled: no
|
||||
@@ -50,16 +69,16 @@ demos:
|
||||
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
||||
organization: "Default"
|
||||
scm_type: git
|
||||
github_url: "https://github.com/ansible/product-demos"
|
||||
scm_url: "https://github.com/ansible/product-demos"
|
||||
workshop_type:
|
||||
- f5
|
||||
- rhel
|
||||
developer_report:
|
||||
author: "Sean Cavanaugh"
|
||||
name: "Create Developer Report"
|
||||
description: 'Create HTML report using <a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variables-discovered-from-systems-facts">Ansible facts</a>'
|
||||
job_type: "run"
|
||||
inventory: "Workshop Inventory"
|
||||
project: "Ansible official demo project"
|
||||
playbook: "playbooks/11_developer_report.yml"
|
||||
credential: "Workshop Credential"
|
||||
survey_enabled: no
|
||||
@@ -68,7 +87,7 @@ demos:
|
||||
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
||||
organization: "Default"
|
||||
scm_type: git
|
||||
github_url: "https://github.com/ansible/product-demos"
|
||||
scm_url: "https://github.com/ansible/product-demos"
|
||||
workshop_type:
|
||||
- f5
|
||||
- rhel
|
||||
|
||||
@@ -20,6 +20,7 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
||||
<table>
|
||||
<tr>
|
||||
<th>Demo Name</th>
|
||||
<th>Author</th>
|
||||
<th>install_demo.yml value</th>
|
||||
<th>Description</th>
|
||||
<th>Video Walkthrough</th>
|
||||
@@ -27,6 +28,7 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Windows IIS Server</td>
|
||||
<td>Colin McNaughton</td>
|
||||
<td><pre>demo: windows_iis</pre></td>
|
||||
<td>install webserver on Windows Server with a survey</td>
|
||||
<td>Not available </td>
|
||||
@@ -34,24 +36,35 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Create Developer Report</td>
|
||||
<td>Sean Cavanaugh</td>
|
||||
<td><pre>demo: developer_report</pre></td>
|
||||
<td>Create HTML report using <a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variables-discovered-from-systems-facts">Ansible facts</a></td>
|
||||
<td>Not available </td>
|
||||
<td><ul><li>f5</li></ul><li>rhel</li></ul></td>
|
||||
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Deploy Application (survey)</td>
|
||||
<td>Sean Cavanaugh</td>
|
||||
<td><pre>demo: deploy_application</pre></td>
|
||||
<td>install yum applications on Linux with a survey</td>
|
||||
<td><a href="https://www.youtube.com/watch?v=pU8ZgSBuEJw&list=PLdu06OJoEf2bp-PNtxPP_2n7Avkax8TED">Video Link</a></td>
|
||||
<td><ul><li>f5</li></ul><li>rhel</li></ul></td>
|
||||
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Create Openscap Report</td>
|
||||
<td>Sean Cavanaugh</td>
|
||||
<td><pre>demo: openscap</pre></td>
|
||||
<td>Create HTML report using SCAP Security Guide (SSG)</td>
|
||||
<td>Not available </td>
|
||||
<td><ul><li>f5</li></ul><li>rhel</li></ul></td>
|
||||
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SERVER / Patching</td>
|
||||
<td>Will Tome</td>
|
||||
<td><pre>demo: patching</pre></td>
|
||||
<td>patching for Linux servers</td>
|
||||
<td>Not available </td>
|
||||
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
||||
<table>
|
||||
<tr>
|
||||
<th>Demo Name</th>
|
||||
<th>Author</th>
|
||||
<th>install_demo.yml value</th>
|
||||
<th>Description</th>
|
||||
<th>Video Walkthrough</th>
|
||||
@@ -28,10 +29,11 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
||||
{% for key, value in demos.iteritems() %}
|
||||
<tr>
|
||||
<td>{{value.name}}</td>
|
||||
<td>{{value.author}}</td>
|
||||
<td><pre>demo: {{key}}</pre></td>
|
||||
<td>{{value.description}}</td>
|
||||
<td>{% if value.video is defined%}<a href="{{ value.video}}">Video Link</a>{% else %}Not available {% endif %}</td>
|
||||
<td><ul>{% for workshop in value.workshop_type %}<li>{{workshop}}</li></ul>{% endfor %}</td>
|
||||
<td><ul>{% for workshop in value.workshop_type %}<li>{{workshop}}</li>{% endfor %}</ul></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
- name: add tower project
|
||||
tower_project:
|
||||
name: "{{project.name}}"
|
||||
description: "{{project.description}}"
|
||||
organization: "{{project.organization}}"
|
||||
scm_type: "{{project.scm_type}}"
|
||||
scm_url: "{{project.scm_url}}"
|
||||
name: "{{demos[demo].project.name}}"
|
||||
description: "{{demos[demo].project.description}}"
|
||||
organization: "{{demos[demo].project.organization}}"
|
||||
scm_type: "{{demos[demo].project.scm_type}}"
|
||||
scm_url: "{{demos[demo].project.scm_url}}"
|
||||
tower_username: "{{my_tower_username}}"
|
||||
tower_password: "{{my_tower_password}}"
|
||||
tower_host: "{{my_tower_host}}"
|
||||
|
||||
Reference in New Issue
Block a user