Fix deprecated "with_items" + remove omb

This commit is contained in:
Lulzette 2021-09-26 21:43:55 +00:00
parent 00dc20fe3c
commit 78d9f84b9b
2 changed files with 5 additions and 10 deletions

View File

@ -23,10 +23,10 @@
register: omb_flag register: omb_flag
- debug: - debug:
msg: "OMB is not installed" msg: 'OMB is not installed, run: bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"'
when: not omb_flag.stat.exists when: not omb_flag.stat.exists
# FIXME: logout from shell # FIXME: logout from shell
- name: Install OMB # - name: Install OMB
shell: bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" # shell: bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
when: not omb_flag.stat.exists # when: not omb_flag.stat.exists

View File

@ -1,11 +1,6 @@
--- ---
- name: Install packages - name: Install packages
apt: apt:
name: "{{ item }}" name: ['mc', 'htop', 'vim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion']
state: present state: present
with_items:
- mc
- htop
- vim
- screen
when: ansible_facts['os_family'] == "Debian" when: ansible_facts['os_family'] == "Debian"