-
Notifications
You must be signed in to change notification settings - Fork 59
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 #470 from ansible/devel
Release PR August 1st, 2023
- Loading branch information
Showing
191 changed files
with
5,901 additions
and
126 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
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 |
---|---|---|
|
@@ -300,3 +300,7 @@ a h3 { | |
a h3:hover { | ||
color: #5F0000; | ||
} | ||
|
||
b { | ||
font-weight: bolder; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
ansible-core | ||
ansible-navigator | ||
ansible-lint | ||
yamllint | ||
ansible-core==2.14.1 | ||
ansible-navigator==2.2.0 | ||
ansible-lint==6.11.0 |
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 @@ | ||
[web] | ||
node1 | ||
node2 |
9 changes: 9 additions & 0 deletions
9
solutions/writing-first-playbook/02-playbook-directory-structure/apache.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,9 @@ | ||
--- | ||
- name: Apache server installed | ||
hosts: node1 | ||
become: true | ||
tasks: | ||
- name: latest Apache version installed | ||
ansible.builtin.package: | ||
name: httpd | ||
state: latest |
5 changes: 5 additions & 0 deletions
5
solutions/writing-first-playbook/03-playbook-run-it/run-cmd.sh
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 @@ | ||
#!/bin/bash | ||
|
||
#Verify httpd is installed | ||
ansible node1 /home/rhel/ansible-files/hosts -m ansible.builtin.shell -a "rpm -q httpd" | ||
|
14 changes: 14 additions & 0 deletions
14
solutions/writing-first-playbook/04-playbook-extend/apache.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,14 @@ | ||
--- | ||
- name: Apache server installed | ||
hosts: node1 | ||
become: true | ||
tasks: | ||
- name: latest Apache version installed | ||
ansible.builtin.package: | ||
name: httpd | ||
state: latest | ||
- name: Apache enabled and running | ||
ansible.builtin.service: | ||
name: httpd | ||
enabled: true | ||
state: started |
18 changes: 18 additions & 0 deletions
18
solutions/writing-first-playbook/05-playbook-files/apache.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,18 @@ | ||
--- | ||
- name: Apache server installed | ||
hosts: node1 | ||
become: true | ||
tasks: | ||
- name: latest Apache version installed | ||
ansible.builtin.package: | ||
name: httpd | ||
state: latest | ||
- name: Apache enabled and running | ||
ansible.builtin.service: | ||
name: httpd | ||
enabled: true | ||
state: started | ||
- name: copy web.html | ||
ansible.builtin.copy: | ||
src: web.html | ||
dest: /var/www/html/index.html |
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 @@ | ||
<body> | ||
<h1>Apache is running fine, thanks to Ansible!</h1> | ||
</body> |
18 changes: 18 additions & 0 deletions
18
solutions/writing-first-playbook/06-playbook-multi-node/apache.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,18 @@ | ||
--- | ||
- name: Apache server installed | ||
hosts: web | ||
become: true | ||
tasks: | ||
- name: latest Apache version installed | ||
ansible.builtin.package: | ||
name: httpd | ||
state: latest | ||
- name: Apache enabled and running | ||
ansible.builtin.service: | ||
name: httpd | ||
enabled: true | ||
state: started | ||
- name: copy web.html | ||
ansible.builtin.copy: | ||
src: web.html | ||
dest: /var/www/html/index.html |
18 changes: 18 additions & 0 deletions
18
solutions/writing-first-playbook/07-playbook-variables/apache.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,18 @@ | ||
--- | ||
- name: Apache server installed | ||
hosts: web | ||
become: true | ||
tasks: | ||
- name: latest Apache version installed | ||
ansible.builtin.package: | ||
name: httpd | ||
state: latest | ||
- name: Apache enabled and running | ||
ansible.builtin.service: | ||
name: httpd | ||
enabled: true | ||
state: started | ||
- name: copy web.html | ||
ansible.builtin.copy: | ||
src: "{{ stage }}_web.html" | ||
dest: /var/www/html/index.html |
3 changes: 3 additions & 0 deletions
3
solutions/writing-first-playbook/07-playbook-variables/dev_web.html
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 @@ | ||
<body> | ||
<h1>This is a development webserver, have fun!</h1> | ||
</body> |
2 changes: 2 additions & 0 deletions
2
solutions/writing-first-playbook/07-playbook-variables/node1.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,2 @@ | ||
--- | ||
stage: prod |
3 changes: 3 additions & 0 deletions
3
solutions/writing-first-playbook/07-playbook-variables/prod_web.html
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 @@ | ||
<body> | ||
<h1>This is a production webserver, take care!</h1> | ||
</body> |
2 changes: 2 additions & 0 deletions
2
solutions/writing-first-playbook/07-playbook-variables/web.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,2 @@ | ||
--- | ||
stage: dev |
Oops, something went wrong.