What's wrong with this block of code?

25 views
Skip to first unread message

Prabhakaran Karuppaih

unread,
Sep 23, 2020, 9:49:41 PM9/23/20
to Ansible Project
  - 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

Michael Mullay

unread,
Sep 23, 2020, 9:58:46 PM9/23/20
to ansible...@googlegroups.com
Looks like indenting. "state" should be indented to the level of "name" since they are both directives of dnf.


--
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/33311026-d3ea-4a08-b676-09e9c35e092fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages