diff --git a/common.yml b/common.yml index aceb24b976e0382ccccfda204746f2662d4a9438..b569ebda3d4885a5d863e9fb0fe83c3978061c21 100644 --- a/common.yml +++ b/common.yml @@ -5,7 +5,7 @@ - hosts: cn become: yes tasks: - - name: set CN hostname + - name: rename CN computer hostname: name=las-bernhard.anka.kit.edu tags: - cn diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml index 5e89703038505094bab27798d49204fd451821b1..3bc6d3cd882bb5e09fd79abab315c25d7252cceb 100644 --- a/roles/common/handlers/main.yml +++ b/roles/common/handlers/main.yml @@ -30,3 +30,7 @@ - name: update-ca-trust become: yes command: update-ca-trust extract + +- name: lock root user + become: yes + command: passwd -l root diff --git a/roles/common/tasks/sysupdate.yml b/roles/common/tasks/sysupdate.yml index ab79cfe0100add60b82eb7f8111d1a37b4f24e85..e4fac344e4528087c20c883dbc8f579131d64bf3 100644 --- a/roles/common/tasks/sysupdate.yml +++ b/roles/common/tasks/sysupdate.yml @@ -2,3 +2,5 @@ - name: Updating the system become: yes package: name=* state=latest + tags: + - skip_ansible_lint diff --git a/roles/ipynb/tasks/notebooks.yml b/roles/ipynb/tasks/notebooks.yml index 64268462156b290a88c7484c4bf437b92d981fae..d1b41962f18181b6f9e4efcffc2a796ba9220085 100644 --- a/roles/ipynb/tasks/notebooks.yml +++ b/roles/ipynb/tasks/notebooks.yml @@ -1,6 +1,6 @@ --- - name: install Jupyter notebook for Python 3 - dnf: state=latest name={{ item }} + dnf: state=installed name={{ item }} become: yes with_items: - python3-jupyter-core diff --git a/roles/python_stack/tasks/fitting.yml b/roles/python_stack/tasks/fitting.yml index 0d2a4f735f28bb1a2402641ac6daf6bc158a126c..28abf9f98de609091ca36597a122ae1266cb4b1b 100644 --- a/roles/python_stack/tasks/fitting.yml +++ b/roles/python_stack/tasks/fitting.yml @@ -1,6 +1,6 @@ --- - name: install fitting for Python 3 - dnf: state=latest name={{ item }} + dnf: state=installed name={{ item }} become: yes with_items: - python3-scipy @@ -9,7 +9,7 @@ when: ansible_distribution == 'Fedora' - name: install fitting via pip3 - pip: executable=pip3 state=latest name={{ item }} + pip: executable=pip3 state=installed name={{ item }} become: yes with_items: - iminuit diff --git a/roles/python_stack/tasks/python.yml b/roles/python_stack/tasks/python.yml index 19603818aacb3604b02360f2451bb35ed8b261e2..ca92c09706ffa7f4d179e70de071e8f4f4bcc1fb 100644 --- a/roles/python_stack/tasks/python.yml +++ b/roles/python_stack/tasks/python.yml @@ -15,9 +15,9 @@ when: ansible_distribution == 'Fedora' - name: "Install Python stack for scientific purposes (Distribution)" - package: name={{ item }} state=latest + package: name={{ item }} state=installed become: yes - with_items: + with_items: - "{{ python2pkg }}" - "{{ python3pkg }}" @@ -30,17 +30,21 @@ - name: upgrade pip2 #install --upgrade pip pip: state=latest name=pip become: yes + tags: + - skip_ansible_lint - name: install pip packages Python 2 - pip: name={{ item }} state=latest + pip: name={{ item }} state=installed become: yes with_items: "{{python2pip}}" - name: upgrade pip3 pip: executable=pip3 state=latest name=pip become: yes + tags: + - skip_ansible_lint - name: install pip packages Python 2 - pip: executable=pip3 name={{ item }} state=latest + pip: executable=pip3 name={{ item }} state=installed become: yes with_items: "{{python3pip}}"