more linting
This commit is contained in:
@@ -19,13 +19,15 @@
|
||||
name: "{{ application }}"
|
||||
allow_downgrade: true
|
||||
register: result
|
||||
notify: Printing to terminal application information
|
||||
|
||||
- name: Printing to terminal application information # noqa: no-handler
|
||||
ansible.builtin.debug:
|
||||
msg: "The application: {{ application }} was already installed"
|
||||
when: not result.changed | bool
|
||||
|
||||
handlers:
|
||||
- name: Printing to terminal application information
|
||||
ansible.builtin.debug:
|
||||
msg: "The application: {{ application }} has been installed"
|
||||
when: result.changed | bool
|
||||
|
||||
- name: Printing to terminal application information
|
||||
ansible.builtin.debug:
|
||||
msg: "The application: {{ application }} was already installed"
|
||||
when: not result.changed | bool
|
||||
|
||||
@@ -16,11 +16,14 @@
|
||||
ansible.builtin.file:
|
||||
path: "{{ volume_path }}"
|
||||
state: directory
|
||||
mode: "0775"
|
||||
|
||||
- name: Create index.html
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ volume_path }}/index.html"
|
||||
content: "{{ message }}"
|
||||
mode: "0664"
|
||||
|
||||
|
||||
- name: Run httpd container
|
||||
containers.podman.podman_container:
|
||||
@@ -30,11 +33,11 @@
|
||||
volume:
|
||||
- "./{{ volume_path }}/:/usr/local/apache2/htdocs:z"
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "8081:80"
|
||||
|
||||
- name: Check Web Page
|
||||
ansible.builtin.uri:
|
||||
url: http://127.0.0.1:8080
|
||||
url: http://127.0.0.1:8081
|
||||
return_content: true
|
||||
register: web_output
|
||||
changed_when: false
|
||||
|
||||
Reference in New Issue
Block a user