8000 GitHub · Where software is built
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cannot remove sysvinit with apt module on debian wheezy #46112
Open
@Fotoblysk

Description

@Fotoblysk
SUMMARY

Cannot remove sysvinit with apt module on debian wheezy

ISSUE TYPE
  • Bug Report
COMPONENT NAME

apt

ANSIBLE VERSION
ansible 2.5.1
  config file = /home/user/playbook_path/ansible.cfg
  configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]

CONFIGURATION
ANSIBLE_PIPELINING(/home/user/playbook_path/ansible.cfg) = True
ANSIBLE_SSH_ARGS(/home/user/playbook_path/ansible.cfg) = -o ControlMaster=auto -o ControlPersist=60s
ANSIBLE_SSH_CONTROL_PATH_DIR(/home/user/playbook_path/ansible.cfg) = ./.ansible_cp
ANSIBLE_SSH_RETRIES(/home/user/playbook_path/ansible.cfg) = 5
DEFAULT_PRIVATE_KEY_FILE(/home/usr/playbook_path/ansible.cfg) = /home/user/projects/playbook_path/test.pem
DEFAULT_REMOTE_USER(/home/user/playbook_path/ansible.cfg) = root
HOST_KEY_CHECKING(/home/user/playbook_path/ansible.cfg) = False
OS / ENVIRONMENT

Local machine:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

Managed machine:
Distributor ID: Debian
Description: Debian GNU/Linux 7.11 (wheezy)
Release: 7.11
Codename: wheezy

STEPS TO REPRODUCE
- name: Remove sysvinit.
  apt:
    pkg: sysvinit
    state: absent
    force: yes
EXPECTED RESULTS

Package removed.

ACTUAL RESULTS

apt-get expects 'Yes, do as I say!' as confirmation. --force-yes, --assume-yes, --yes flags are not working.

fatal: [remote_ip]: FAILED! => {"changed": false, "msg": "'apt-get remove 'sysvinit'' failed: ", "rc": 1, "stderr": "", "stderr_lines": [], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages will be REMOVED:\n  sysvinit\nWARNING: The following essential packages will be removed.\nThis should NOT be done unless you know exactly what you are doing!\n  sysvinit\n0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.\nAfter this operation, 283 kB disk space will be freed.\nYou are about to do something potentially harmful.\nTo continue type in the phrase 'Yes, do as I say!'\n ?] Abort.\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages will be REMOVED:", "  sysvinit", "WARNING: The following essential packages will be removed.", "This should NOT be done unless you know exactly what you are doing!", "  sysvinit", "0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.", "After this operation, 283 kB disk space will be freed.", "You are about to do something potentially harmful.", "To continue type in the phrase 'Yes, do as I say!'", " ?] Abort."]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Priority 3 - Approved, No Time Limitationaffects_2.5This issue/PR affects Ansible v2.5bugThis issue/PR relates to a bug.has_prThis issue has an associated PR.moduleThis issue/PR relates to a module.packagingPackaging categorysupport:coreThis issue/PR relates to code supported by the Ansible Engineering Team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0