diff --git a/tasks/ldap_login.yml b/tasks/ldap_login.yml index e03b0870494e38bdb97d494c0ad1e8bd198c2b96..30ec8cb0e9c1755cda98e8243d5a3e7ffeea6b35 100644 --- a/tasks/ldap_login.yml +++ b/tasks/ldap_login.yml @@ -3,3 +3,17 @@ - name: Assert assert: that: ansible_os_family in [ 'Debian', 'OpenBSD' ] + +- name: apt install + when: ansible_pkg_mgr == 'apt' + apt: + name: bash + state: present + update_cache: yes + cache_valid_time: 3600 + +- name: pkg install + when: ansible_pkg_mgr == 'openbsd_pkg' + openbsd_pkg: + name: bash + state: present diff --git a/tasks/openbsd_bootstrap.yml b/tasks/openbsd_bootstrap.yml index 9d14194eaad5f4b6d562871810a9a686cf531c63..7d0ca7b2d18fde8e8b261b99a1130d2c1d4e0270 100644 --- a/tasks/openbsd_bootstrap.yml +++ b/tasks/openbsd_bootstrap.yml @@ -23,8 +23,3 @@ regexp: '^installpath =' state: present create: yes - -- name: Install Bash - openbsd_pkg: - name: bash - state: latest