Skip to content

Commit c29a9db

Browse files
committed
debug dnf remove cockpit
1 parent 6defc9d commit c29a9db

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

ansible/bootstrap.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,14 @@
147147
become: yes
148148
tags: cockpit
149149
tasks:
150-
- name: Remove RHEL cockpit
151-
dnf:
152-
name: cockpit-ws
153-
state: "{{ appliances_cockpit_state }}"
150+
- name: Remove RHEL cockpit using dnf command
151+
command: dnf -y -vvvv remove cockpit-ws
152+
register: dnf_remove_output
153+
ignore_errors: true # Avoid failing if a lock or other error happens
154+
155+
- name: Debug dnf output
156+
debug:
157+
msg: "{{ dnf_remove_output.stdout }}"
154158

155159
- hosts: firewalld
156160
gather_facts: false

dev/extract_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def extract_log_info_and_generate_csv(log_file_path, output_csv_path, target_dir
7676
print("Path to workflow log plain text file should be provided as the only arg to this script")
7777
sys.exit(1)
7878
log_file_path = sys.argv[1] # Input workflow log name
79-
output_csv_path = log_file_path.replace('.txt.', '.csv') # Output CSV name
79+
output_csv_path = log_file_path.replace('.txt', '.csv') # Output CSV name
8080
target_directory = '/ansible/' # Shared directory for task path
8181

8282
extract_log_info_and_generate_csv(log_file_path, output_csv_path, target_directory)

0 commit comments

Comments
 (0)