------------------------------------ Please help to resolve this error
------------------------------------
[ec2-user@ansible-engine sw]$ cat lab_setup_repo.yaml
---
- name: install FTP to export repo
hosts: all
become: true
tasks:
- name: install FTP server
yum:
name: vsftpd
state: latest
- name: start FTP server
service:
name: vsftpd
state: started
enabled: yes
- name: open firewall for ftp
firewalld:
service: ftp
state: enabled
permanenet: yes
- name: setup the repo directory
hosts: localhost
tasks:
- name: make directory
file:
path: /var/ftp/repo
state: directory
- name: install dnf utils
yum:
name:
- dnf-utils
- createrepo
state: latest
- name: download sample package
command: yumdownlaoder nmap --destdir /var/ftp/repo
- name: createrepo
command: createrepo /var/ftp/repo
...
[ec2-user@ansible-engine sw]$
[ec2-user@ansible-engine sw]$ ansible-playbook lab_setup_repo.yaml
PLAY [install FTP to export repo]
**************************************************************************************************************************************************************
TASK [Gathering Facts]
*************************************************************************************************************************************************************************
[WARNING]: Platform linux on host node3 is using the discovered Python
interpreter at /usr/bin/python, but future installation of another Python
interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html
for more information.
ok: [node3]
[WARNING]: Platform linux on host ansible-engine is using the discovered
Python interpreter at /usr/bin/python, but future installation of another
Python interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html
for more information.
ok: [ansible-engine]
[WARNING]: Platform linux on host node2 is using the discovered Python
interpreter at /usr/bin/python, but future installation of another Python
interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html
for more information.
ok: [node2]
[WARNING]: Platform linux on host node1 is using the discovered Python
interpreter at /usr/bin/python, but future installation of another Python
interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html
for more information.
ok: [node1]
TASK [install FTP server]
**********************************************************************************************************************************************************************
changed: [node3]
changed: [ansible-engine]
changed: [node2]
changed: [node1]
TASK [start FTP server]
************************************************************************************************************************************************************************
changed: [node3]
changed: [ansible-engine]
changed: [node2]
changed: [node1]
*TASK [open firewall for ftp]
*******************************************************************************************************************************************************************fatal:
[node3]: FAILED! => {"changed": false, "msg": "Unsupported parameters for
(firewalld) module: permanenet Supported parameters include: icmp_block,
icmp_block_inversion, immediate, interface, masquerade, offline, permanent,
port, rich_rule, service, source, state, timeout, zone"}fatal:
[ansible-engine]: FAILED! => {"changed": false, "msg": "Unsupported
parameters for (firewalld) module: permanenet Supported parameters include:
icmp_block, icmp_block_inversion, immediate, interface, masquerade,
offline, permanent, port, rich_rule, service, source, state, timeout,
zone"}fatal: [node2]: FAILED! => {"changed": false, "msg": "Unsupported
parameters for (firewalld) module: permanenet Supported parameters include:
icmp_block, icmp_block_inversion, immediate, interface, masquerade,
offline, permanent, port, rich_rule, service, source, state, timeout,
zone"}fatal: [node1]: FAILED! => {"changed": false, "msg": "Unsupported
parameters for (firewalld) module: permanenet Supported parameters include:
icmp_block, icmp_block_inversion, immediate, interface, masquerade,
offline, permanent, port, rich_rule, service, source, state, timeout,
zone"}*
PLAY RECAP
*************************************************************************************************************************************************************************************
ansible-engine : ok=3 changed=2 unreachable=0 failed=1
skipped=0 rescued=0 ignored=0
node1 : ok=3 changed=2 unreachable=0 failed=1
skipped=0 rescued=0 ignored=0
node2 : ok=3 changed=2 unreachable=0 failed=1
skipped=0 rescued=0 ignored=0
node3 : ok=3 changed=2 unreachable=0 failed=1
skipped=0 rescued=0 ignored=0
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CANPH-qw-o-VDpZiyGHjF5%2Bmw20BecvYONKTtPpUD-drBKHe1Bw%40mail.gmail.com.