8025-awxRefactor #26

Merged
juan merged 20 commits from 8025-awxRefactor into main 2024-09-24 13:51:24 +00:00
10 changed files with 49 additions and 49 deletions
Showing only changes of commit c8b0d9fb1c - Show all commits

View File

@ -7,6 +7,7 @@ resolv:
resolvers: resolvers:
- '10.0.0.4' - '10.0.0.4'
- '10.0.0.5' - '10.0.0.5'
awx_email: awx@verdnatura.es
awx_pub_key: > awx_pub_key: >
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDjeIZVyppFK/dqOUa1PxgSeRVWk7MFmANYvSs+VHHn ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDjeIZVyppFK/dqOUa1PxgSeRVWk7MFmANYvSs+VHHn
D4/BE//K8AxlxnyLl4e6jAcBFoIu1JLxbRKdOhx+Zgkq5OmEzp/XKzfEvnEU5CP+W2+5MwfkUQ3TetJs D4/BE//K8AxlxnyLl4e6jAcBFoIu1JLxbRKdOhx+Zgkq5OmEzp/XKzfEvnEU5CP+W2+5MwfkUQ3TetJs

View File

@ -1,7 +1,6 @@
- hosts: localhost - hosts: localhost
become: no become: no
become_method: sudo
tasks: tasks:
- name: Send mail - name: Send mail
import_role: import_role:
name: config-send-mail name: send-mail

View File

@ -1,10 +1,10 @@
- name: Send mail using Verdnatura SMTP servers - name: Send mail using own SMTP server
community.general.mail: community.general.mail:
host: smtp.verdnatura.es host: "{{ smtp_server }}"
port: 465 port: 465
username: awx@verdnatura.es username: "{{ awx_email }}"
password: "{{ awx_smtp_password }}" password: "{{ awx_smtp_password }}"
to: "{{ sysadmin_mail }}" to: "{{ sysadmin_mail }}"
subject: Ansible-test subject: Ansible test
body: System {{ ansible_hostname }} has been send successfully mail. body: System {{ ansible_fqdn }} has sent the email successfully.
delegate_to: localhost delegate_to: localhost