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 in Ansible by akhtar
• 24,890 points
64 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 by MD
• 56,140 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 in Ansible by MD
• 56,140 points
92 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
675 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer