Skip to content

Commit

Permalink
Update appstream-yum.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
xtophd authored May 1, 2020
1 parent 5de4c25 commit 36a1b8a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions documentation/_include/appstream-yum.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,20 @@ Then to verify, you can use an ansible adhoc command to check your work.
[bash,options="nowrap",subs="{markup-in-source}"]
----
# *ansible rhel8 -i config/rhel8-workshop -o -a "rpm -q postgresql-server"*
node1 | CHANGED | rc=0 | (stdout) postgresql-server-10.6-1.module+el8+2469+5ecd5aae.x86_64
node2 | FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"},"changed": true,"cmd": ["rpm","-q","postgresql-server"],"delta": "0:00:00.007318","end": "2020-05-01 17:28:38.719189","msg": "non-zero return code","rc": 1,"start": "2020-05-01 17:28:38.711871","stderr": "","stderr_lines": [],"stdout": "package postgresql-server is not installed","stdout_lines": ["package postgresql-server is not installed"],"warnings": ["Consider using the yum, dnf or zypper module rather than running 'rpm'. If you need to use command because yum, dnf or zypper is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message."]}
node3 | CHANGED | rc=0 | (stdout) postgresql-server-9.6.10-1.module+el8+2470+d1bafa0e.x86_64
----

NOTE: You will get an error from node2, since postgresql-server was not installed there

You should have:

* postgresql-server 10.6 on node1
* postgresql-server 9.6 on node3
* and no postgresql-server on node2.
* no postgresql-server on node2 (failed)
* postgresql-server 9.6 on node3

== Additional Resources

Expand Down

0 comments on commit 36a1b8a

Please sign in to comment.