From 87e0159e88a1ff2b121ef282d48ce5329d8662c4 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 19 Nov 2021 22:09:39 +0000 Subject: [PATCH] Move main.yaml to tasks.yaml --- main.yaml | 33 --------------------------------- tasks.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 33 deletions(-) delete mode 100644 main.yaml create mode 100644 tasks.yaml diff --git a/main.yaml b/main.yaml deleted file mode 100644 index 659bf96..0000000 --- a/main.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# yaml-language-server: $schema=https://json.schemastore.org/ansible-playbook.json ---- -- hosts: localhost - tasks: - - name: Install Python pip packages - pip: - name: '{{item}}' - state: latest - extra_args: --user - with_items: - - flake8 - - grip - - ipdb - - ipython - - isort - - pylint - - python-gist - - yapf - - - name: Create Python symbolic links - file: - state: link - src: '{{item.src}}' - dest: '{{item.dest}}' - with_items: - - src: ~/.config/python/flake8 - dest: ~/.config/flake8 - - src: ~/.config/python/pylintrc - dest: ~/.pylintrc - - src: ~/.config/python/ipython_config.py - dest: ~/.ipython/profile_default/ipython_config.py - - src: ~/.config/python/pip.conf - dest: ~/.config/pip/pip.conf diff --git a/tasks.yaml b/tasks.yaml new file mode 100644 index 0000000..d397473 --- /dev/null +++ b/tasks.yaml @@ -0,0 +1,30 @@ +--- +- name: python install pip packages + pip: + name: '{{item}}' + state: latest + extra_args: --user + with_items: + - flake8 + - grip + - ipdb + - ipython + - isort + - pylint + - python-gist + - yapf + +- name: python create symbolic links + file: + state: link + src: '{{item.src}}' + dest: '{{item.dest}}' + with_items: + - src: ~/.config/python/flake8 + dest: ~/.config/flake8 + - src: ~/.config/python/pylintrc + dest: ~/.pylintrc + - src: ~/.config/python/ipython_config.py + dest: ~/.ipython/profile_default/ipython_config.py + - src: ~/.config/python/pip.conf + dest: ~/.config/pip/pip.conf