ansible/playbooks/manual/get-system-packages.yml
Kevin Fenzi 7984b46eb7 The great phx2 pruning run (1st cut).
Since we no longer have any machines in phx2, I have tried to remove
them from ansible. Note that there are still some places where we need
to remove them still: nagios, dhcp, named were not touched, and in cases
where it wasn't pretty clear what a conditional was doing I left it to
be cleaned up later.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 14:14:31 -07:00

21 lines
468 B
YAML

#
# A playbook to get all the rpms installed on a set of systems.
#
- name: Get installed packages
hosts: builders:releng-compose:data-analysis01.iad2.fedoraproject.org
gather_facts: true
user: root
tasks:
- name: RPM_output
shell: "/usr/bin/rpm -qa"
register: rpm_output
args:
warn: false # set warn=false to prevent warning
- debug: var=rpm_output.stdout_lines
# when: rpm_output is defined and rpm_output.results|length > 0