# What's wrong with this block of code?

**URL:** <https://forum.ansible.com/t/whats-wrong-with-this-block-of-code/33883>\
**Category:** Ansible Project\
**Created:** [September 24, 2020, 1:49am UTC](https://forum.ansible.com/t/whats-wrong-with-this-block-of-code/33883 "2020-09-24T01:49:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prabhakaran\_Karuppai](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Post date:** [September 24, 2020, 1:49am UTC](https://forum.ansible.com/t/whats-wrong-with-this-block-of-code/33883/1 "2020-09-24T01:49:40Z")

</div>

- name: Install other dependencies  
dnf:  
name:
- unixODBC
- unixODBC-devel
- mysql-connector-odbc
- MySQL-python
- tcpdump
- ntp
- ntpdate
- jansson
- bind-utils  
state: present

I am getting the following error Message:  
ERROR! Conflicting action statements: state, dnf

---

<div class="post-metadata">

**Author:** ![Michael\_M1](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Michael\_M1](https://forum.ansible.com/u/Michael_M1)\
**Post date:** [September 24, 2020, 1:57am UTC](https://forum.ansible.com/t/whats-wrong-with-this-block-of-code/33883/2 "2020-09-24T01:57:50Z")

</div>

Looks like indenting. “state” should be indented to the level of “name” since they are both directives of dnf.
