Fix deprecated "with_items" + remove omb
This commit is contained in:
parent
00dc20fe3c
commit
78d9f84b9b
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user