neillturner / kitchen-ansible

Ansible Provisioner for Test Kitchen
Other
350 stars 134 forks source link

Managing services make the playbook fail #285

Closed Mallear closed 6 years ago

Mallear commented 6 years ago

Hello,

I'm using kitchen-ansible and kitchen-docker to test my playbook with a docker container. Every time it tries to run a task to stop or start a service, the execution fails.

Here is my .kitchen.yml file :

---
driver:
  name: docker
  use_sudo: false

platforms:
  - name: amazonlinux-2
    driver:
      image: n0ts/amazonlinux-ansible
      platform: centos

provisioner:
  name: ansible_playbook
  hosts: localhost
  roles_path: roles
  require_pip: true
  require_ansible_repo: false
  ansible_version: "2.6"
  require_chef_for_busser: false
  ansible_verbosity: 3

verifier:
  name: serverspec
  use_sudo: yes
  sudo_path: true

suites:
  - name: ldapadmin
    provisioner:
        name: ansible_playbook
        playbook: test/playbook.yml

Am I doing anything wrong or is this kitchen-ansible normal behavior ?

Mallear commented 6 years ago

Okay nevermind, that is due to trying to manage services in docker container with service module. That makes no sense.

Closing issue.