Check for gnome-shell in /usr/local/bin
This commit is contained in:
parent
88f5c6b4a5
commit
f0f98a72f4
1 changed files with 7 additions and 3 deletions
|
@ -13,13 +13,17 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Check for Gnome Shell
|
- name: Check for Gnome Shell in /usr/bin
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: /usr/bin/gnome-shell
|
path: /usr/bin/gnome-shell
|
||||||
register: gnome_shell
|
register: usr_bin_gnome_shell
|
||||||
|
- name: Check for Gnome Shell in /usr/local/bin
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: /usr/local/bin/gnome-shell
|
||||||
|
register: usr_local_bin_gnome_shell
|
||||||
- name: Copy GNOME settings reset script
|
- name: Copy GNOME settings reset script
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: gnome-setup.sh
|
src: gnome-setup.sh
|
||||||
dest: "{{ ansible_env.HOME }}/.local/bin/reset-gnome-setup"
|
dest: "{{ ansible_env.HOME }}/.local/bin/reset-gnome-setup"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
when: gnome_shell.stat.exists
|
when: usr_bin_gnome_shell.stat.exists or usr_local_bin_gnome_shell.stat.exists
|
||||||
|
|
Loading…
Reference in a new issue