Add Ansible linting and other stuff
This commit is contained in:
@@ -1,20 +1,23 @@
|
||||
- name: create mount point
|
||||
become: true
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: /mnt/vmware
|
||||
state: directory
|
||||
mode: 0700
|
||||
|
||||
- name: mount iso file
|
||||
become: true
|
||||
command: mount -o loop,ro {{ ansible_user_dir }}/linux.iso /mnt/vmware
|
||||
ansible.builtin.command: mount -o loop,ro {{ ansible_user_dir }}/linux.iso /mnt/vmware # noqa command-instead-of-module
|
||||
changed_when: false
|
||||
|
||||
- name: create tmp dir
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: /tmp/vmware
|
||||
state: directory
|
||||
mode: 0700
|
||||
|
||||
- name: untar tools
|
||||
command: |
|
||||
ansible.builtin.command: |
|
||||
set -ex
|
||||
tar zxf /mnt/vmware/VMWareTools-*.tar.gz -C /tmp/vmware
|
||||
sudo /tmp/vmware/vmware-tools-distrib/vmware-install.pl --default --force-install
|
||||
@@ -24,7 +27,7 @@
|
||||
|
||||
- name: remove files
|
||||
become: true
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
@@ -32,7 +35,7 @@
|
||||
- "{{ ansible_user_dir }}/linux.iso"
|
||||
|
||||
- name: add content to /etc/vmware-tools/locations
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
block: |
|
||||
remove_answer ENABLE_VGAUTH
|
||||
answer ENABLE_VGAUTH no
|
||||
@@ -41,5 +44,5 @@
|
||||
|
||||
- name: finish up installs
|
||||
become: true
|
||||
command: /usr/bin/vmware-config-tools.pl --default --skip-stop-abort
|
||||
ansible.builtin.command: /usr/bin/vmware-config-tools.pl --default --skip-stop-abort
|
||||
changed_when: false
|
||||
|
||||
Reference in New Issue
Block a user