Skip to content

Commit

Permalink
fix unexpected 'new' (T_NEW) error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Pfaller committed Sep 8, 2023
1 parent 8a3da7e commit bab34cf
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions tasks/pear.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,6 @@
become: true
when: package_installed.stdout == ''

- name: Fix unexpected 'new' (T_NEW) error
ansible.builtin.shell:
cmd: pear uninstall {{ item }}
args:
executable: /bin/bash
changed_when: false
loop:
- File_Fstab
- Services_Weather
- horde/Horde_Service_Weather

- name: Fixing syntax error in a dependency PHP module
become: true
ansible.builtin.lineinfile:
path: /usr/share/php/Services/Weather.php
regexp: ^.*$
line: ""
backup: true
changed_when: false
failed_when: false
when: package_installed.stdout == ''

- name: Execute Horde run scripts
become: true
ansible.builtin.expect:
Expand Down Expand Up @@ -91,3 +69,15 @@
executable: /bin/bash
changed_when: false
when: webmail_package_installed.stdout == ''

- name: Fix unexpected 'new' (T_NEW) error
ansible.builtin.shell:
cmd: pear uninstall {{ item }}
args:
executable: /bin/bash
changed_when: false
become: true
loop:
- File_Fstab
- Services_Weather
- horde/Horde_Service_Weather

Check failure on line 83 in tasks/pear.yml

View workflow job for this annotation

GitHub Actions / lint & check formatting

yaml[new-line-at-end-of-file]

No new line character at the end of file

0 comments on commit bab34cf

Please sign in to comment.