From f73d0af900b4d04d5190f1bbaebb93116ba6ca46 Mon Sep 17 00:00:00 2001 From: Ahmad Haghighi Date: Aug 10 2019 09:11:30 +0000 Subject: complete fork --- diff --git a/.travis.yml b/.travis.yml index 72a9128..dd82e48 100644 --- a/.travis.yml +++ b/.travis.yml @@ -84,5 +84,3 @@ script: notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ slack: - secure: "KeXA8wXxYX41jjXJAMEU3dBFf0jf6T/OuY62Zt6fCxmse+R4nC7P6TZGx7LKjaVCXKdRz3+giJz7Ef/7q23yTSFIoasiB0rzWiAg0S0E5o8ZFdJ0HdQQZknA7j21GcvK9Kj/zgxXUqFu6hhc+vgKRnPAMOjpyaoo74PwG4kHARFLAxb7fKdCxhkfBWvtdkgAUWzESWNeUHNsknFlbEP7PTk1akfsOaC3xUYjfA7kmZMH6w0eM+/FuTaoYdJ8EM3OcH+3j2q0IXuXVrJ0B1IyGvpJ1qVvDu9YSvkxbD6Qd9BCVRDBkCcTxsBpZX+Ks5DhaTOO71zsk1nZtBIFPAanXARygoyuMrAS4exfSrWT2TTxu0D01J9JZUlGmI/Uf7R9Kf7LAT1KfvZR/7VAK3X53i3pZHQqp8EOPr+FGpB9MPn62jfWF7gWYR8AfP4M1gaP7JYVxZqmSKE0LgqQNY/SmPcs37TU8jL6h1ojN0PPy8tRhGUhY3/tQq/19aF62WDTzH1j/OgcI5GrAZ2bR8EOQGvSfJX2uWnFhBQsISxaYo4Eiocw5z/QGU/JFBXOgipAGeS2PjiR3PYa3SkeftEOHnbp7rzakKd4zDCM/EGiIG4rPnFSwvVPBnnm64ut+PqpX8JI5uxdoJ8bjVIM/47hGNUnVFIG/ZQUXzI5vySqwyY=" - email: false diff --git a/LICENSE b/LICENSE index 744118c..45125a4 100644 --- a/LICENSE +++ b/LICENSE @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2019 Robert de Bock (robert@meinit.nl) + Copyright 2019 Ahmad Haghighi (haghighi@fedoraproject.org) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 83c8821..a6fc390 100644 --- a/README.md +++ b/README.md @@ -2,123 +2,11 @@ reboot ========= Ansible logo -Build status +Build status The purpose of this role is to reboot your system. -Example Playbook ----------------- - -This example is taken from `molecule/resources/playbook.yml`: -```yaml ---- -- name: Converge - hosts: all - become: yes - gather_facts: yes - - roles: - - robertdebock.reboot -``` - -The machine you are running this on, may need to be prepared. -```yaml ---- -- name: Prepare - hosts: all - gather_facts: no - become: yes - - roles: - - robertdebock.bootstrap -``` - -Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles. - -Role Variables --------------- - -These variables are set in `defaults/main.yml`: -```yaml ---- -# defaults file for reboot - -# Some operating systems can determine if a reboot is required. This -# parameter can be set to always reboot. -reboot_always: no - -# How long to wait before sending a reboot. -reboot_delay: 4 - -# Number of seconds to wait before checking if the machine is up. -reboot_up_delay: 8 - -# You can specify a message for rebooting, easier for auditing. -reboot_message: "Ansible role robertdebock.reboot initiated a reboot." -``` - -Requirements ------------- - -- Access to a repository containing packages, likely on the internet. -- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.) - -The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`: - -```yaml ---- -- robertdebock.bootstrap - -``` - -Context -------- - -This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information. - -Here is an overview of related roles: -![dependencies](https://raw.githubusercontent.com/robertdebock/drawings/artifacts/reboot.png "Dependency") - - -Compatibility -------------- - -This role has been tested against the following distributions and Ansible version: - -|distribution|ansible 2.7|ansible 2.8|ansible devel| -|------------|-----------|-----------|-------------| -|alpine-edge*|yes|yes|yes*| -|alpine-latest|yes|yes|yes*| -|archlinux|yes|yes|yes*| -|centos-6|yes|yes|yes*| -|centos-latest|yes|yes|yes*| -|debian-stable|yes|yes|yes*| -|debian-unstable*|yes|yes|yes*| -|fedora-latest|yes|yes|yes*| -|fedora-rawhide*|yes|yes|yes*| -|opensuse-leap|yes|yes|yes*| -|ubuntu-devel*|yes|yes|yes*| -|ubuntu-latest|yes|yes|yes*| -|ubuntu-rolling|yes|yes|yes*| - -A single star means the build may fail, it's marked as an experimental build. - -Testing -------- - -[Unit tests](https://travis-ci.org/robertdebock/ansible-role-reboot) are done on every commit and periodically. - -If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-reboot/issues) - -To test this role locally please use [Molecule](https://github.com/ansible/molecule): -``` -pip install molecule -molecule test -``` - -To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) and set a region using `export AWS_REGION=eu-central-1` before running `molecule test --scenario-name ec2`. - -There are many specific scenarios available, please have a look in the `molecule/` directory. +**Upstream: [robertdebock.reboot](https://github.com/robertdebock/ansible-role-reboot).** License ------- @@ -129,4 +17,5 @@ Apache-2.0 Author Information ------------------ -[Robert de Bock](https://robertdebock.nl/) +[Robert de Bock](https://robertdebock.nl/) +[Ahmad Haghighi](https://haghighi.site) \ No newline at end of file diff --git a/defaults/main.yml b/defaults/main.yml index 5e045f5..c0ff182 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -12,4 +12,4 @@ reboot_delay: 4 reboot_up_delay: 8 # You can specify a message for rebooting, easier for auditing. -reboot_message: "Ansible role robertdebock.reboot initiated a reboot." +reboot_message: "Ansible role haghighi_ahmad.reboot initiated a reboot." diff --git a/meta/main.yml b/meta/main.yml index 3d39caa..1341b4b 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,8 +1,8 @@ --- galaxy_info: - author: Robert de Bock + author: Ahmad Haghighi role_name: reboot - description: The purpose of this role is to reboot your system. + description: The purpose of this role is to reboot your system. (Upstream:robertdebock.reboot) license: Apache-2.0 company: none min_ansible_version: 2.6 diff --git a/molecule/resources/prepare.yml b/molecule/resources/prepare.yml index 1cda60c..3185797 100644 --- a/molecule/resources/prepare.yml +++ b/molecule/resources/prepare.yml @@ -5,4 +5,4 @@ become: yes roles: - - robertdebock.bootstrap + - haghighi_ahmad.bootstrap diff --git a/requirements.yml b/requirements.yml index 46dec9d..4e2f85c 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,2 +1,2 @@ --- -- robertdebock.bootstrap +- haghighi_ahmad.bootstrap