FAILED changed false msg Parameter description is required

0 votes

Hi Guys,

I am trying to configure the yum repository for docker using Ansible-playbook. But it is showing me the below error.

[root@localhost ansible_playbooks]# ansible-playbook docker_task.yml
PLAY [all] *************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************
ok: [192.168.0.179]
ok: [192.168.0.180]
TASK [Add repository for docker] ***************************************************************************************************************************************
fatal: [192.168.0.180]: FAILED! => {"changed": false, "msg": "Parameter 'description' is required."}
fatal: [192.168.0.179]: FAILED! => {"changed": false, "msg": "Parameter 'description' is required."}
PLAY RECAP *************************************************************************************************************************************************************
192.168.0.179              : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
192.168.0.180              : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
Aug 7, 2020 in Ansible by akhtar
• 38,260 points
2,454 views

1 answer to this question.

0 votes

Hi@akhtar,

You got this error because you did not add any description in your Ansible-playbook. In some versions of Ansible, it is mandatory to add a description when we configure yum. I have attached one playbook below for your reference.

- hosts: all
  tasks:
  - name: Add repository for docker
    yum_repository:
      name: docker
      description: configure yum for docker
      file: docker_repo
      baseurl: https://download.docker.com/linux/centos/7/x86_64/stable/
answered Aug 7, 2020 by MD
• 95,460 points

Related Questions In Ansible

0 votes
1 answer

FAILED! => {"changed": false, "msg": "src and content are mutually exclusive"}

Hi@akhtar, You can't use content and src argument ...READ MORE

answered Aug 2, 2020 in Ansible by MD
• 95,460 points
3,278 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,987 views
+2 votes
1 answer
0 votes
1 answer

fatal: [localhost]: FAILED! => {"changed": false, "msg": "boto required for this module"}

Hi@akhtar, As ansible use the python library in ...READ MORE

answered Aug 12, 2020 in Ansible by MD
• 95,460 points
4,140 views
0 votes
1 answer

FAILED! => {"changed": false, "msg": "state is mounted but all of the following are missing: fstype"}

Hi@akhtar, You need to pass some more arguments ...READ MORE

answered Sep 16, 2020 in Ansible by MD
• 95,460 points
2,577 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP