managing software via ansible

106 views
Skip to first unread message

Sakshi Jain

unread,
Aug 14, 2021, 1:51:30 PM8/14/21
to ansible...@googlegroups.com
------------------------------------ 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

vinoth kumar

unread,
Aug 14, 2021, 1:53:58 PM8/14/21
to ansible...@googlegroups.com
Check the spelling for permanent.



--
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 ansible-proje...@googlegroups.com.
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.

Melvin Satheesan

unread,
Aug 14, 2021, 1:58:06 PM8/14/21
to ansible...@googlegroups.com
Check permanent spelling

--

Markus Falb

unread,
Aug 14, 2021, 3:20:52 PM8/14/21
to ansible...@googlegroups.com
I would say it's a typo in "permanenet"
best regards, markus

Antony Stone

unread,
Aug 14, 2021, 3:37:12 PM8/14/21
to ansible...@googlegroups.com
On Saturday 14 August 2021 at 19:50:54, Sakshi Jain wrote:

> ------------------------------------ Please help to resolve this error

I think you need to correct the spelling of "yumdownlaoder".

It won't help to solve the error message you have now, but it will make things
work better in future.
Antony.

--
Is it venison for dinner again? Oh deer.

Please reply to the list;
please *don't* CC me.
Reply all
Reply to author
Forward
0 new messages