Giter Site home page Giter Site logo

debops-contrib / ansible-dropbear_initramfs Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 4.0 72 KB

Setup the dropbear ssh server in initramfs | This role has been migrated to DebOps

Home Page: https://github.com/debops/debops/

License: GNU General Public License v3.0

Shell 100.00%

ansible-dropbear_initramfs's Introduction

Additional Ansible roles of the DebOps project

Welcome. This organization is meant to hold the Ansible roles and playbooks that are not part of the official DebOps project, but might be integrated with it in the future.

If you have any roles that you would like to add here, you can either create an issue in this (debops-contrib) repository or contact the team at #debops IRC channel on FreeNode, or through the mailing list.

You should be able to import your role to Ansible Galaxy under the debops-contrib organization. The role would then be called debops-contrib.$your_role. Remember to rename your role appropriately and generate a new README indicating its correct name.

Example: debops-contrib.checkmk_server

DebOps Contrib Playbooks

As for the official DebOps project, DebOps Contrib also has a repository holding playbooks for the roles. The repository is called debops-contrib-playbooks.

ansible-dropbear_initramfs's People

Contributors

ypid avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-dropbear_initramfs's Issues

Example playbook wrong?

I tryed local on Debian Jessie:
ansible-playbook dropbear_initramfs.yml

ERROR: environment is not a legal parameter at this level in an Ansible Playbook

dropbear_initramfs.yml - example playbook from [https://debops-contrib.readthedocs.io/en/latest/ansible/roles/ansible-dropbear_initramfs/docs/getting-started.html#example-inventory]

How to use for current host? Example not work.

Error

https://github.com/debops-contrib/ansible-dropbear_initramfs/blob/master/docs/getting-started.rst#id1:

If you are using DebOps, you can set the following in your inventory:

## Load APT pinning presets.
apt_preferences__group_list:
  - '{{ apt_preferences__preset_list | list }}'

apt__group_sources:
  - comment: 'Enable Debian stretch repository'
    uri: '{{ ansible_local.apt.default_sources_map.Debian[0]
             if (ansible_local|d() and ansible_local.apt|d() and
                 ansible_local.apt.default_sources_map|d() and
                 ansible_local.apt.default_sources_map.Debian|d() and
                 ansible_local.apt.default_sources_map.Debian[0]|d())
             else "http://deb.debian.org/debian" }}'
    suites:
      - 'stretch'
    component:
      - 'main'

dropbear_initramfs__base_packages:
  - 'dropbear-initramfs'
ERROR! Syntax Error while loading YAML.


The error appears to have been in '/root/project-directory/ansible/playbooks/dropbear_initramfs.yml': line 27, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    - comment: 'Enable Debian stretch repository'
    uri: '{{ ansible_local.apt.default_sources_map.Debian[0]
    ^ here
This one looks easy to fix.  It seems that there is a value started
with a quote, and the YAML parser is expecting to see the line ended
with the same kind of quote.  For instance:

    when: "ok" in result.stdout

Could be written as:

   when: '"ok" in result.stdout'

Or equivalently:

   when: "'ok' in result.stdout"

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.