Code Monkey home page Code Monkey logo

docker-fedora38-ansible's People

Contributors

geerlingguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-fedora38-ansible's Issues

Support for aarch64

We currently use this Docker image to test our cisagov Ansible roles. I am looking to test our Ansible roles on both aarch64 and arm64 platforms, but this image does not support the former. It would be nice if it did.

Failed to create temporary directory

Using Molecule to test nomad role:

task.yaml

---
- name: Import assert.yml
  ansible.builtin.import_tasks: assert.yml
  run_once: true
  delegate_to: localhost
  
- name: Install required packages
  package:
    name:
      - unzip
      - wget
    state: present

- name: update cache
  apt: update_cache=yes force_apt_get=yes cache_valid_time=3600
  when: ansible_os_family == "Debian" 

- name: Download and install software
  ansible.builtin.unarchive:
    src: "https://releases.hashicorp.com/nomad/{{ nomad_version }}/nomad_{{ nomad_version }}_linux_amd64.zip"
    dest: "{{ nomad_destination }}"
    remote_src: yes
    owner: root
    group: root
    mode: '0755'

- name: Create Nomad config directory
  ansible.builtin.file:
    path: "{{ nomad_config_dir }}"
    state: directory
    owner: root
    group: root
    mode: '0755'

- name: Create Nomad data directory
  ansible.builtin.file:
    path: "{{ nomad_data_dir }}"
    state: directory
    owner: root
    group: root
    mode: '0755'

- name: Copy Nomad configuration
  ansible.builtin.copy:
    src: "files/nomad.hcl"
    dest: /etc/nomad.d/nomad.hcl
    owner: root
    group: root
    mode: '0644'

- name: Copy Nomad configuration
  ansible.builtin.copy:
    src: "files/nomad.service"
    dest: /etc/systemd/system/nomad.service
    owner: root
    group: root
    mode: '0644'

- name: Enable and start Nomad service
  ansible.builtin.systemd:
    name: nomad
    enabled: true
    state: started
    daemon_reload: true

molecule.yaml

---
dependency:
  name: galaxy
driver:
  name: docker
platforms:
  - name: instance
    image: fedora_local_systemd:latest # image build local using dockerfile 
    pre_build_image: true
    privileged: true
    override_command: false
    command: /sbin/init
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
    tmpfs:
      - /run
      - /tmp
provisioner:
  name: ansible
verifier:
  name: ansible

Output :

molecule converge

fatal: [instance]: UNREACHABLE! => {"changed": false, "msg": "Failed to create temporary directory. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \" echo ~/.ansible/tmp \"&& mkdir \" echo ~/.ansible/tmp/ansible-tmp-1682405122.76964-49234-21241474154623 \" && echo ansible-tmp-1682405122.76964-49234-21241474154623=\" echo ~/.ansible/tmp/ansible-tmp-1682405122.76964-49234-21241474154623 \" ), exited with result 1", "unreachable": true}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.