------------------------------------ Please help to resolve this error
Check the spelling for permanent.
https://docs.ansible.com/ansible/latest/collections/ansible/posix/firewalld_module.html
//Vinoth
Check permanent spelling
I would say it's a typo in "permanenet"
best regards, markus
------------------------------------ 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.
[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
...
Antony.