Skip to content
Snippets Groups Projects
Commit af55e199 authored by nimrod's avatar nimrod
Browse files
parents 23f94e3a b8be0e68
No related branches found
No related tags found
No related merge requests found
five: 5
six: 6
eleven: '{{ five + six }}'
......@@ -10,3 +10,8 @@
sha: 94b506c144d4e22ebc1deef637a818db13bcaca5
hooks:
- id: ansible-pre-commit
- repo: https://github.com/willthames/ansible-lint.git
sha: v3.3.3
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
......@@ -30,7 +30,7 @@ To install the dependencies:
.. code:: shell
ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD)
ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles
To run the full test suite:
......
[defaults]
host_key_checking = False
retry_files_enabled = False
roles_path = .molecule/roles:../
roles_path = roles:../:../../:.molecule/roles
command_warnings = True
deprecation_warnings = True
---
# tasks file for ansible-role-openbsd-bootstrap
- name: Install Python
raw: "PKG_PATH={{ openbsd_pkg_mirror }}/OpenBSD/$(uname -r)/packages/$(arch -s)/ /usr/sbin/pkg_add -Iz python-2.7"
register: openbsd_pkg_add_python
failed_when: "'error' in openbsd_pkg_add_python.stdout|lower"
changed_when: "'py-pip' in openbsd_pkg_add_python.stdout"
tags:
- skip_ansible_lint
- name: Gather facts
setup:
- name: Symlink python
file:
path: /usr/bin/python
src: /usr/local/bin/python2.7
state: link
owner: root
group: 0
mode: 0o0755
- name: Configure pkg
lineinfile:
dest: /etc/pkg.conf
line: 'installpath = {{ openbsd_pkg_mirror }}/OpenBSD/{{ ansible_distribution_release }}/packages/{{ ansible_architecture }}/'
regexp: '^installpath ='
state: present
create: yes
# tasks file for ansible-role-debian-bootstrap
- name: Update APT sources
raw: DEBIAN_FRONTEND=noninteractive apt-get update
changed_when: False
- name: APT install Python
raw: DEBIAN_FRONTEND=noninteractive apt-get install -qy python2.7 python
register: debian_bootstrap_install_python
changed_when: "'Unpacking' in debian_bootstrap_install_python.stdout"
def test_example(Command):
assert Command('uname').rc == 0
def test_root(Command, Sudo):
with Sudo():
assert Command('whoami').stdout == 'root'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment